Since we always have 2 edges, we don't need to reserve 3 slot for the

PHI node.

llvm-svn: 89005
This commit is contained in:
Mike Stump 2009-11-17 00:10:05 +00:00
parent e8cdcc9ab0
commit 4d0e9095e4
1 changed files with 1 additions and 1 deletions

View File

@ -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;