Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Do not remove DeferredDecls when they become EmittedDeferredDecls.
Needs an appropriate "if" on a future LangOpts::incremantallyProcessing.
  • Loading branch information
Axel-Naumann committed Mar 22, 2017
commit 2ad0cdfdbee38375b8159223bf1cf43f02397c98
Original file line number Diff line number Diff line change
Expand Up @@ -1971,7 +1971,7 @@ CodeGenModule::GetOrCreateLLVMFunction(StringRef MangledName,
// don't need it anymore).
addDeferredDeclToEmit(F, DDI->second);
EmittedDeferredDecls[F] = std::make_pair(DDI->first, DDI->second);
DeferredDecls.erase(DDI);
//DeferredDecls.erase(DDI);

// Otherwise, there are cases we have to worry about where we're
// using a declaration for which we must emit a definition but where
Expand Down Expand Up @@ -2169,7 +2169,7 @@ CodeGenModule::GetOrCreateLLVMGlobal(StringRef MangledName,
// list, and remove it from DeferredDecls (since we don't need it anymore).
addDeferredDeclToEmit(GV, DDI->second);
EmittedDeferredDecls[GV] = std::make_pair(DDI->first, DDI->second);
DeferredDecls.erase(DDI);
//DeferredDecls.erase(DDI);
}

// Handle things which are present even on external declarations.
Expand Down