commit | 031340a551582b0044849541a08cdfb76574f70a | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Aug 17 19:41:53 2003 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Aug 17 19:41:53 2003 +0000 |
tree | e2f5fdeca14842b2edf03a35fe3ce7484544f090 | |
parent | 05ed0396ec42b5cfeb6a3aa40f8bf2599f1e72c0 [diff] [blame] |
Fix bug: SimplifyCFG/2003-08-17-BranchFoldOrdering.ll llvm-svn: 7921
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index d3778c5..3ea76c4 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -74,6 +74,12 @@ BI->setUnconditionalDest(Dest1); return true; } + } else if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { + if (ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition())) { + + + } + } return false; }