diff options
Diffstat (limited to 'lib/Module')
-rw-r--r-- | lib/Module/InstructionOperandTypeCheckPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Module/InstructionOperandTypeCheckPass.cpp b/lib/Module/InstructionOperandTypeCheckPass.cpp index 8f2b59bd..1a1422ec 100644 --- a/lib/Module/InstructionOperandTypeCheckPass.cpp +++ b/lib/Module/InstructionOperandTypeCheckPass.cpp @@ -173,7 +173,7 @@ bool InstructionOperandTypeCheckPass::runOnModule(Module &M) { for (Function::iterator bi = fi->begin(), be = fi->end(); bi != be; ++bi) { for (BasicBlock::iterator ii = bi->begin(), ie = bi->end(); ii != ie; ++ii) { - Instruction *i = static_cast<Instruction *>(ii); + Instruction *i = &*ii; instructionOperandsConform &= checkInstruction(i); } } |