about summary refs log tree commit diff homepage
path: root/lib/Module
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-07-21 11:44:45 +0100
committerDan Liew <delcypher@gmail.com>2017-07-24 21:40:29 +0100
commit61033f73fe70ae67d1293fc85f2668aff59d04e0 (patch)
treec4957edb1116116270799db24aee58cefe8e6c30 /lib/Module
parent13b17ee65b7db6af26aa614b7f0318fe2a60fe36 (diff)
downloadklee-61033f73fe70ae67d1293fc85f2668aff59d04e0.tar.gz
llvm: get rid of static_casts from iterators (take 2)
follow up of c9c90a0ecdce10172fd5318aea60a9ff4057679f
Diffstat (limited to 'lib/Module')
-rw-r--r--lib/Module/InstructionOperandTypeCheckPass.cpp2
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);
       }
     }