diff --git a/include/llvm/iPHINode.h b/include/llvm/iPHINode.h index 0d577ccabd9..bd52993c1f0 100644 --- a/include/llvm/iPHINode.h +++ b/include/llvm/iPHINode.h @@ -76,10 +76,10 @@ public: /// addIncoming - Add an incoming value to the end of the PHI list /// - void addIncoming(Value *D, BasicBlock *BB) { - assert(getType() == D->getType() && + void addIncoming(Value *V, BasicBlock *BB) { + assert(getType() == V->getType() && "All operands to PHI node must be the same type as the PHI node!"); - Operands.push_back(Use(D, this)); + Operands.push_back(Use(V, this)); Operands.push_back(Use(reinterpret_cast(BB), this)); }