mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 07:00:59 +00:00
A quick and ugly hack to fix PR345. I used TypeTy specifically to make
Reid cringe :) llvm-svn: 13788
This commit is contained in:
parent
73a0995681
commit
70d84370e1
@ -515,7 +515,13 @@ static bool setValueName(Value *V, char *NameStr) {
|
||||
CurFun.CurrentFunction->getSymbolTable() :
|
||||
CurModule.CurrentModule->getSymbolTable();
|
||||
|
||||
Value *Existing = ST.lookup(V->getType(), Name);
|
||||
Value *Existing;
|
||||
// FIXME: this is really gross
|
||||
if (V->getType() != Type::TypeTy)
|
||||
Existing = ST.lookup(V->getType(), Name);
|
||||
else
|
||||
Existing = ST.lookupType(Name);
|
||||
|
||||
if (Existing) { // Inserting a name that is already defined???
|
||||
// There is only one case where this is allowed: when we are refining an
|
||||
// opaque type. In this case, Existing will be an opaque type.
|
||||
|
Loading…
x
Reference in New Issue
Block a user