[llvm-commits] CVS: llvm/lib/VMCore/Constants.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 30 16:52:02 PST 2004
Changes in directory llvm/lib/VMCore:
Constants.cpp updated: 1.84 -> 1.85
---
Log message:
Fix a latent bug in select constantexpr handling that was broke 253.perlbmk
---
Diffs of the changes: (+2 -0)
Index: llvm/lib/VMCore/Constants.cpp
diff -u llvm/lib/VMCore/Constants.cpp:1.84 llvm/lib/VMCore/Constants.cpp:1.85
--- llvm/lib/VMCore/Constants.cpp:1.84 Mon Mar 29 13:51:24 2004
+++ llvm/lib/VMCore/Constants.cpp Tue Mar 30 16:51:03 2004
@@ -1058,6 +1058,8 @@
V.first < Instruction::BinaryOpsEnd) ||
V.first == Instruction::Shl || V.first == Instruction::Shr)
return new ConstantExpr(V.first, V.second[0], V.second[1]);
+ if (V.first == Instruction::Select)
+ return new ConstantExpr(V.second[0], V.second[1], V.second[2]);
assert(V.first == Instruction::GetElementPtr && "Invalid ConstantExpr!");
More information about the llvm-commits
mailing list