summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-30 22:51:03 +0000
committerChris Lattner <sabre@nondot.org>2004-03-30 22:51:03 +0000
commitb7897ce4315b38c363baa923ee1b5f099200dd4f (patch)
tree2996cf4a18d88b62d9d97e6b42bd22415447d53c
parenta333b1382f6883c6ad6626e899c0f027c1e5ae9d (diff)
downloadbcm5719-llvm-b7897ce4315b38c363baa923ee1b5f099200dd4f.tar.gz
bcm5719-llvm-b7897ce4315b38c363baa923ee1b5f099200dd4f.zip
Fix a latent bug in select constantexpr handling that was broke 253.perlbmk
llvm-svn: 12562
-rw-r--r--llvm/lib/VMCore/Constants.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp
index e1b0f18dc32..f29f3157c8e 100644
--- a/llvm/lib/VMCore/Constants.cpp
+++ b/llvm/lib/VMCore/Constants.cpp
@@ -1058,6 +1058,8 @@ namespace llvm {
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!");
OpenPOWER on IntegriCloud