[llvm-branch-commits] [llvm-branch] r113681 - /llvm/branches/ggreif/waymark-64/lib/Transforms/Scalar/CodeGenPrepare.cpp
Gabor Greif
ggreif at gmail.com
Sat Sep 11 01:21:38 PDT 2010
Author: ggreif
Date: Sat Sep 11 03:21:38 2010
New Revision: 113681
URL: http://llvm.org/viewvc/llvm-project?rev=113681&view=rev
Log:
fix thinko
Modified:
llvm/branches/ggreif/waymark-64/lib/Transforms/Scalar/CodeGenPrepare.cpp
Modified: llvm/branches/ggreif/waymark-64/lib/Transforms/Scalar/CodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/waymark-64/lib/Transforms/Scalar/CodeGenPrepare.cpp?rev=113681&r1=113680&r2=113681&view=diff
==============================================================================
--- llvm/branches/ggreif/waymark-64/lib/Transforms/Scalar/CodeGenPrepare.cpp (original)
+++ llvm/branches/ggreif/waymark-64/lib/Transforms/Scalar/CodeGenPrepare.cpp Sat Sep 11 03:21:38 2010
@@ -888,7 +888,7 @@
static bool OptimizeSwitchInst(SwitchInst *I, Value *condition) {
BasicBlock *Old = I->getParent();
- if (Instruction *C = dyn_cast<TruncInst>(condition)) {
+ if (Instruction *C = dyn_cast<Instruction>(condition)) {
if (Old != C->getParent())
return false;
}
More information about the llvm-branch-commits
mailing list