mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Clean up warning about unused variable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224281 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1532,8 +1532,10 @@ bool ModuleLinker::run() {
|
|||||||
GlobalValue *SGV = LazilyLinkGlobalValues.back();
|
GlobalValue *SGV = LazilyLinkGlobalValues.back();
|
||||||
LazilyLinkGlobalValues.pop_back();
|
LazilyLinkGlobalValues.pop_back();
|
||||||
|
|
||||||
if (auto F = dyn_cast<Function>(SGV))
|
if (isa<Function>(SGV))
|
||||||
assert(!F->isDeclaration() && "users should not pass down decls");
|
assert(!cast<Function>(SGV)->isDeclaration() &&
|
||||||
|
"users should not pass down decls");
|
||||||
|
|
||||||
if (linkGlobalValueBody(*SGV))
|
if (linkGlobalValueBody(*SGV))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user