[llvm-commits] CVS: llvm/lib/VMCore/Instructions.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 23 21:32:22 PST 2005
Changes in directory llvm/lib/VMCore:
Instructions.cpp updated: 1.11 -> 1.12
---
Log message:
switch instructions only allow constantints for their values, be more specific.
---
Diffs of the changes: (+1 -1)
Instructions.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/VMCore/Instructions.cpp
diff -u llvm/lib/VMCore/Instructions.cpp:1.11 llvm/lib/VMCore/Instructions.cpp:1.12
--- llvm/lib/VMCore/Instructions.cpp:1.11 Fri Feb 4 19:38:38 2005
+++ llvm/lib/VMCore/Instructions.cpp Wed Feb 23 23:32:09 2005
@@ -948,7 +948,7 @@
/// addCase - Add an entry to the switch instruction...
///
-void SwitchInst::addCase(Constant *OnVal, BasicBlock *Dest) {
+void SwitchInst::addCase(ConstantInt *OnVal, BasicBlock *Dest) {
unsigned OpNo = NumOperands;
if (OpNo+2 > ReservedSpace)
resizeOperands(0); // Get more space!
More information about the llvm-commits
mailing list