about summary refs log tree commit diff homepage
path: root/lib/Module/LowerSwitch.cpp
diff options
context:
space:
mode:
authorAndrea Mattavelli <andreamattavelli@users.noreply.github.com>2017-07-18 17:39:21 +0100
committerGitHub <noreply@github.com>2017-07-18 17:39:21 +0100
commit5e4f0b7c79d57b9a9908f6293a5936fa54e511e9 (patch)
tree8429e4cb0c60bec43621c4971626fea397ea108f /lib/Module/LowerSwitch.cpp
parent64f367ea9db4739b70414cba002bf25d28db6242 (diff)
parentc9c90a0ecdce10172fd5318aea60a9ff4057679f (diff)
downloadklee-5e4f0b7c79d57b9a9908f6293a5936fa54e511e9.tar.gz
Merge pull request #672 from jirislaby/llvm40_static_casts
llvm: get rid of static_casts from iterators
Diffstat (limited to 'lib/Module/LowerSwitch.cpp')
-rw-r--r--lib/Module/LowerSwitch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Module/LowerSwitch.cpp b/lib/Module/LowerSwitch.cpp
index 5cc6b991..b20c21ab 100644
--- a/lib/Module/LowerSwitch.cpp
+++ b/lib/Module/LowerSwitch.cpp
@@ -44,7 +44,7 @@ bool LowerSwitchPass::runOnFunction(Function &F) {
   bool changed = false;
 
   for (Function::iterator I = F.begin(), E = F.end(); I != E; ) {
-    BasicBlock *cur = static_cast<BasicBlock *>(I);
+    BasicBlock *cur = &*I;
     I++; // Advance over block so we don't traverse new blocks
 
     if (SwitchInst *SI = dyn_cast<SwitchInst>(cur->getTerminator())) {