diff options
author | Mike Stump <mrs@apple.com> | 2009-11-17 00:10:05 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-11-17 00:10:05 +0000 |
commit | 14431c16d131560265254201df5ee575b8e3578f (patch) | |
tree | f52065fbe21c1790a046e9b893da4733f87bc09d /lib/CodeGen/CGCXXExpr.cpp | |
parent | 8b152b85b7a6cd51a1c4452e7f8425fb8e32b619 (diff) |
Since we always have 2 edges, we don't need to reserve 3 slot for the
PHI node.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXXExpr.cpp')
-rw-r--r-- | lib/CodeGen/CGCXXExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCXXExpr.cpp b/lib/CodeGen/CGCXXExpr.cpp index 78734a00fb..eff432a05c 100644 --- a/lib/CodeGen/CGCXXExpr.cpp +++ b/lib/CodeGen/CGCXXExpr.cpp @@ -512,7 +512,7 @@ llvm::Value *CodeGenFunction::EmitDynamicCast(llvm::Value *V, EmitBlock(ContBlock); if (CanBeZero) { llvm::PHINode *PHI = Builder.CreatePHI(LTy); - PHI->reserveOperandSpace(3); + PHI->reserveOperandSpace(2); PHI->addIncoming(V, NonZeroBlock); PHI->addIncoming(llvm::Constant::getNullValue(LTy), NullBlock); V = PHI; |