diff --git a/include/llvm/CodeGen/InstrSelectionSupport.h b/include/llvm/CodeGen/InstrSelectionSupport.h index 31ac3be9043..3e48b12e64e 100644 --- a/include/llvm/CodeGen/InstrSelectionSupport.h +++ b/include/llvm/CodeGen/InstrSelectionSupport.h @@ -53,7 +53,7 @@ int64_t GetConstantValueAsSignedInt (const Value *V, // Returns true/false in allConstantIndices if all indices are/aren't const. //--------------------------------------------------------------------------- -Value* GetMemInstArgs (const InstructionNode* memInstrNode, +Value* GetMemInstArgs (InstructionNode* memInstrNode, vector& idxVec, bool& allConstantIndices); diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index 35ec8716c5f..5195f4ac29f 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp @@ -938,7 +938,7 @@ CreateCodeForFixedSizeAlloca(const TargetMachine& target, static void SetOperandsForMemInstr(vector& mvec, - const InstructionNode* vmInstrNode, + InstructionNode* vmInstrNode, const TargetMachine& target) { Instruction* memInst = vmInstrNode->getInstruction();