summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-06-05 17:49:40 +0000
committerChris Lattner <sabre@nondot.org>2002-06-05 17:49:40 +0000
commit64802e4db87159b387925a2db15bdd653725490f (patch)
treefab93d5f0a8963581fcfeac2e01be79fcef34869 /llvm/lib
parentb469cf8361014e18457a5e4fb4a81ccf5112d34e (diff)
downloadbcm5719-llvm-64802e4db87159b387925a2db15bdd653725490f.tar.gz
bcm5719-llvm-64802e4db87159b387925a2db15bdd653725490f.zip
Fix constness problem
llvm-svn: 2759
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Bytecode/Writer/InstructionWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp b/llvm/lib/Bytecode/Writer/InstructionWriter.cpp
index 7ab953cf3cb..227980a75ec 100644
--- a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp
+++ b/llvm/lib/Bytecode/Writer/InstructionWriter.cpp
@@ -224,13 +224,13 @@ void BytecodeWriter::processInstruction(const Instruction *I) {
if (Slots[1] > MaxOpSlot) MaxOpSlot = Slots[1];
NumOperands++;
} else if (const CallInst *CI = dyn_cast<CallInst>(I)) {// Handle VarArg calls
- PointerType *Ty = cast<PointerType>(CI->getCalledValue()->getType());
+ const PointerType *Ty = cast<PointerType>(CI->getCalledValue()->getType());
if (cast<FunctionType>(Ty->getElementType())->isVarArg()) {
outputInstrVarArgsCall(I, Table, Type, Out);
return;
}
} else if (const InvokeInst *II = dyn_cast<InvokeInst>(I)) { // ... & Invokes
- PointerType *Ty = cast<PointerType>(II->getCalledValue()->getType());
+ const PointerType *Ty = cast<PointerType>(II->getCalledValue()->getType());
if (cast<FunctionType>(Ty->getElementType())->isVarArg()) {
outputInstrVarArgsCall(I, Table, Type, Out);
return;
OpenPOWER on IntegriCloud