mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Don't instantiate GC metadata for declarations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54895 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -144,7 +144,7 @@ bool LowerIntrinsics::doInitialization(Module &M) {
|
||||
CollectorModuleMetadata *CMM = getAnalysisToUpdate<CollectorModuleMetadata>();
|
||||
assert(CMM && "LowerIntrinsics didn't require CollectorModuleMetadata!?");
|
||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
|
||||
if (I->hasCollector())
|
||||
if (!I->isDeclaration() && I->hasCollector())
|
||||
CMM->get(*I); // Instantiate the Collector.
|
||||
|
||||
bool MadeChange = false;
|
||||
|
||||
Reference in New Issue
Block a user