This is an archive of the discontinued LLVM Phabricator instance.

[CUDA] Destroy deferred diagnostics before destroying the ASTContext's PartialDiagnostic allocator.
ClosedPublic

Authored by jlebar on Oct 4 2016, 4:16 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

jlebar updated this revision to Diff 73575.Oct 4 2016, 4:16 PM
jlebar retitled this revision from to [CUDA] Destroy deferred diagnostics before destroying the ASTContext's PartialDiagnostic allocator..
jlebar updated this object.
jlebar added a reviewer: rnk.
jlebar added a subscriber: cfe-commits.
rnk added inline comments.Oct 4 2016, 4:25 PM
clang/lib/CodeGen/CodeGenModule.cpp
512–513 ↗(On Diff #73575)

The ASTContext outlives CodeGenModule, but the diagnostic allocator in the ASTContext does not. As written, this suggests that CGM outlives ASTContext, which isn't right.

jlebar updated this revision to Diff 73578.Oct 4 2016, 4:32 PM

Update comment.

jlebar marked an inline comment as done.Oct 4 2016, 4:35 PM
rnk accepted this revision.Oct 4 2016, 4:39 PM
rnk edited edge metadata.

lgtm

This revision is now accepted and ready to land.Oct 4 2016, 4:39 PM
This revision was automatically updated to reflect the committed changes.