aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore
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
commit92e84229e11a059ba06a441aaf566a16e6002d16 (patch)
treef76585aa7dca37766ceecf7ffb7c237f5debe2ea /lib/VMCore
parenta8db01ac8353f00b519211e6e9e7d53feb1b2923 (diff)
Fix a latent bug in select constantexpr handling that was broke 253.perlbmk
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12562 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Constants.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp
index e1b0f18dc3..f29f3157c8 100644
--- a/lib/VMCore/Constants.cpp
+++ b/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!");