Fix build.
authorAnders Carlsson <andersca@mac.com>
Thu, 15 Apr 2010 03:11:28 +0000 (03:11 +0000)
committerAnders Carlsson <andersca@mac.com>
Thu, 15 Apr 2010 03:11:28 +0000 (03:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101335 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp

index c3e85f5d2f0c2925f60da2682edb9f8ee6bddc4d..08e8010a43ee8fe61ef8c96a091d9f19f3cbeb80 100644 (file)
@@ -1041,7 +1041,7 @@ ARMTargetLowering::LowerCall(SDValue Chain, SDValue Callee,
     // those, the target's already in a register, so we don't need to do
     // anything extra.
     if (GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee)) {
-      GlobalValue *GV = G->getGlobal();
+      const GlobalValue *GV = G->getGlobal();
       // Create a constant pool entry for the callee address
       unsigned ARMPCLabelIndex = AFI->createConstPoolEntryUId();
       ARMConstantPoolValue *CPV = new ARMConstantPoolValue(GV,