about summary refs log tree commit diff homepage
path: root/lib/Module/RaiseAsm.cpp
diff options
context:
space:
mode:
authorAndrea Mattavelli <andreamattavelli@users.noreply.github.com>2017-03-01 11:21:06 +0000
committerGitHub <noreply@github.com>2017-03-01 11:21:06 +0000
commit4f5ea494986689dd89f97f9a64082527557c71c9 (patch)
treee49d673744e699506506cbe0a3dc29c215170877 /lib/Module/RaiseAsm.cpp
parente21bf6f653b9c602fe21b74ff7c389aa2430b386 (diff)
parentb7a6aec4eeb4cbbc71d4747d2aa6d25dda41d5d1 (diff)
downloadklee-4f5ea494986689dd89f97f9a64082527557c71c9.tar.gz
Merge pull request #604 from jirislaby/add_casts
convert iterators using static_cast
Diffstat (limited to 'lib/Module/RaiseAsm.cpp')
-rw-r--r--lib/Module/RaiseAsm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Module/RaiseAsm.cpp b/lib/Module/RaiseAsm.cpp
index e612ca63..af92b74b 100644
--- a/lib/Module/RaiseAsm.cpp
+++ b/lib/Module/RaiseAsm.cpp
@@ -115,7 +115,7 @@ bool RaiseAsmPass::runOnModule(Module &M) {
   for (Module::iterator fi = M.begin(), fe = M.end(); fi != fe; ++fi) {
     for (Function::iterator bi = fi->begin(), be = fi->end(); bi != be; ++bi) {
       for (BasicBlock::iterator ii = bi->begin(), ie = bi->end(); ii != ie;) {
-        Instruction *i = ii;
+        Instruction *i = static_cast<Instruction *>(ii);
         ++ii;  
         changed |= runOnInstruction(M, i);
       }