mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 14:16:12 +00:00
Sink the isa into the assert
llvm-svn: 224291
This commit is contained in:
parent
0a4e0a7b23
commit
d27db299e8
@ -1532,10 +1532,8 @@ bool ModuleLinker::run() {
|
||||
GlobalValue *SGV = LazilyLinkGlobalValues.back();
|
||||
LazilyLinkGlobalValues.pop_back();
|
||||
|
||||
if (isa<Function>(SGV))
|
||||
assert(!cast<Function>(SGV)->isDeclaration() &&
|
||||
"users should not pass down decls");
|
||||
|
||||
assert((!isa<Function>(SGV) || !cast<Function>(SGV)->isDeclaration()) &&
|
||||
"users should not pass down decls");
|
||||
if (linkGlobalValueBody(*SGV))
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user