[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Apr 10 14:16:01 PDT 2004
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.185 -> 1.186
---
Log message:
Fix spurious warning in release mode
---
Diffs of the changes: (+3 -1)
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.185 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.186
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.185 Fri Apr 9 18:46:01 2004
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Sat Apr 10 14:15:56 2004
@@ -509,8 +509,10 @@
New = BinaryOperator::create(BO->getOpcode(), Op0, Op1);
else if (ShiftInst *SI = dyn_cast<ShiftInst>(&BI))
New = new ShiftInst(SI->getOpcode(), Op0, Op1);
- else
+ else {
assert(0 && "Unknown binary instruction type!");
+ abort();
+ }
return IC->InsertNewInstBefore(New, BI);
}
More information about the llvm-commits
mailing list