diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-13 00:14:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-13 00:14:42 +0000 |
commit | 86941611c9de791739ecd4664e766b5f5ce6d85e (patch) | |
tree | 48725353f64519972f51215ac1e78383f391a5f0 /lib/Bitcode | |
parent | 78c80fdbdd7a0db3cd5c84f60ddc95e72702fe2e (diff) | |
download | external_llvm-86941611c9de791739ecd4664e766b5f5ce6d85e.zip external_llvm-86941611c9de791739ecd4664e766b5f5ce6d85e.tar.gz external_llvm-86941611c9de791739ecd4664e766b5f5ce6d85e.tar.bz2 |
Gabor points out that reserveOperandSpace takes # of values,
not # of operands as an input.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 1d8def9..141d5e1 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -1476,7 +1476,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) { if (!Ty) return Error("Invalid PHI record"); PHINode *PN = PHINode::Create(Ty); - PN->reserveOperandSpace(Record.size()-1); + PN->reserveOperandSpace((Record.size()-1)/2); for (unsigned i = 0, e = Record.size()-1; i != e; i += 2) { Value *V = getFnValueByID(Record[1+i], Ty); |