From 27f44fe1f8c5c680b1fe9c88d0ff95995dfaac23 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 11 Jun 2004 21:12:22 +0000 Subject: [PATCH] It is no longer 2001 llvm-svn: 14157 --- llvm/include/llvm/iPHINode.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/iPHINode.h b/llvm/include/llvm/iPHINode.h index 0d577ccabd90..bd52993c1f0d 100644 --- a/llvm/include/llvm/iPHINode.h +++ b/llvm/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)); }