aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/CodeGen/InstrSelectionSupport.h2
-rw-r--r--lib/Target/SparcV9/SparcV9InstrSelection.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/InstrSelectionSupport.h b/include/llvm/CodeGen/InstrSelectionSupport.h
index 31ac3be904..3e48b12e64 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<Value*>& idxVec,
bool& allConstantIndices);
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp
index 35ec8716c5..5195f4ac29 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<MachineInstr*>& mvec,
- const InstructionNode* vmInstrNode,
+ InstructionNode* vmInstrNode,
const TargetMachine& target)
{
Instruction* memInst = vmInstrNode->getInstruction();