mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Make the assert a bit stronger.
We should get no declarations in here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224382 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
84201cb2bd
commit
e1bf514b2b
@ -1532,8 +1532,7 @@ bool ModuleLinker::run() {
|
||||
GlobalValue *SGV = LazilyLinkGlobalValues.back();
|
||||
LazilyLinkGlobalValues.pop_back();
|
||||
|
||||
assert((!isa<Function>(SGV) || !cast<Function>(SGV)->isDeclaration()) &&
|
||||
"users should not pass down decls");
|
||||
assert(!SGV->isDeclaration() && "users should not pass down decls");
|
||||
if (linkGlobalValueBody(*SGV))
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user