diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-03-30 11:28:58 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-03-30 11:28:58 +0000 |
commit | bbf3bacb3e0c1ebb3e8a4a8b1330404a7e379315 (patch) | |
tree | 6015da94dac0d15f65c4d0afffd4aa6df0ea718e /lib/CodeGen/CGBuiltin.cpp | |
parent | 6be56729a8a2a97e2a62e4567bc6a21efb8ba53d (diff) |
Remove PHINode::reserveOperandSpace(). Instead, add a parameter to
PHINode::Create() giving the (known or expected) number of operands.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBuiltin.cpp')
-rw-r--r-- | lib/CodeGen/CGBuiltin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGBuiltin.cpp b/lib/CodeGen/CGBuiltin.cpp index c998372d99..cc8a768263 100644 --- a/lib/CodeGen/CGBuiltin.cpp +++ b/lib/CodeGen/CGBuiltin.cpp @@ -473,9 +473,8 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD, BasicBlock *End = createBasicBlock("fpclassify_end", this->CurFn); Builder.SetInsertPoint(End); PHINode *Result = - Builder.CreatePHI(ConvertType(E->getArg(0)->getType()), + Builder.CreatePHI(ConvertType(E->getArg(0)->getType()), 4, "fpclassify_result"); - Result->reserveOperandSpace(4); // if (V==0) return FP_ZERO Builder.SetInsertPoint(Begin); |