aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-17 19:41:53 +0000
committerChris Lattner <sabre@nondot.org>2003-08-17 19:41:53 +0000
commit694e37f08a7c09ccc24642532106295cf7b3a1e3 (patch)
treeadb19b90f3b2a047d68d2c1ac53dccccc31d9845 /lib/Transforms/Utils/Local.cpp
parentf0cd835784daf390e730f1c4a9582ff0c517e57e (diff)
Fix bug: SimplifyCFG/2003-08-17-BranchFoldOrdering.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
-rw-r--r--lib/Transforms/Utils/Local.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp
index d3778c5044..3ea76c4ea5 100644
--- a/lib/Transforms/Utils/Local.cpp
+++ b/lib/Transforms/Utils/Local.cpp
@@ -74,6 +74,12 @@ bool ConstantFoldTerminator(BasicBlock *BB) {
BI->setUnconditionalDest(Dest1);
return true;
}
+ } else if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) {
+ if (ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition())) {
+
+
+ }
+
}
return false;
}