Don't call Type::setName()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14724 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-07-09 16:43:55 +00:00
parent 313efcb886
commit 8ca2dc0710

View File

@ -610,7 +610,7 @@ static bool setTypeName(Type *T, char *NameStr) {
}
// Okay, its a newly named type. Set its name.
T->setName(Name,&ST);
if (!Name.empty()) ST.insert(Name, T);
// If we're in function scope
if (inFunctionScope()) {