Fix PR147

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10204 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-11-25 03:54:16 +00:00
parent 22e4686974
commit 0b268fb75e

View File

@ -553,6 +553,11 @@ static bool setValueName(Value *V, char *NameStr) {
}
}
}
// Clear the symbol table so it doesn't complain when it
// gets destructed
CurFun.LocalSymtab.clear();
ThrowException("Redefinition of value named '" + Name + "' in the '" +
V->getType()->getDescription() + "' type plane!");
}