diff options
author | Dan Gohman <gohman@apple.com> | 2008-09-09 02:08:49 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-09-09 02:08:49 +0000 |
commit | 7164e9a7026e5d7ff064e5bf810e6a51a48cfda9 (patch) | |
tree | e563f092b2234f9bf0061bb4e68f810247f5cc60 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 1e97901388d9a5d5f7b66a07af63ee3a19f903e0 (diff) | |
download | llvm-7164e9a7026e5d7ff064e5bf810e6a51a48cfda9.zip llvm-7164e9a7026e5d7ff064e5bf810e6a51a48cfda9.tar.gz llvm-7164e9a7026e5d7ff064e5bf810e6a51a48cfda9.tar.bz2 |
Temporarily disable vector select in the bitcode reader. The
way it handles the type of the condition is breaking plain
scalar select in the case that the value is a
forward-reference.
llvm-svn: 55976
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index eeba0e5..d7f5b09 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -1499,7 +1499,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) { Value *TrueVal, *FalseVal, *Cond; if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) || getValue(Record, OpNum, TrueVal->getType(), FalseVal) || - getValue(Record, OpNum, 0 /*skip type check*/, Cond)) + getValue(Record, OpNum, Type::Int1Ty, Cond)) return Error("Invalid SELECT record"); // select condition can be either i1 or [N x i1] |