Yaxun (Sam) Liu
a5435844f0
[HIP][OpenMP] Fix assertion in deferred diag
...
Fix assertion in UsedDeclVisitor where clang is trying to look up a destructor
for a forward declared class.
Fixes: https://bugs.llvm.org/show_bug.cgi?id=52250
Reviewed by: Artem Belevich, John McCall
Differential Revision: https://reviews.llvm.org/D112235
2021-10-25 11:07:40 -04:00
Geoff Levner
b9225543e8
DeferredDiagnosticsEmitter crashes
...
Patch VisitCXXDeleteExpr() in clang::UsedDeclVisitor to avoid it crashing
when the expression's destroyed type is null. According to the comments
in CXXDeleteExpr::getDestroyedType(), this can happen when the type to
delete is a dependent type.
Patch by Geoff Levner.
Differential Revision: https://reviews.llvm.org/D88949
2020-10-08 11:42:21 -04:00
Yaxun (Sam) Liu
b670ab7b6b
recommit 1b978ddba05c [CUDA][HIP][OpenMP] Emit deferred diagnostics by a post-parsing AST travese
...
Differential Revision: https://reviews.llvm.org/D70172
2020-03-23 12:09:07 -04:00
Yaxun (Sam) Liu
08ab8c9af4
[NFC] Add UsedDeclVisitor
...
Differential Revision: https://reviews.llvm.org/D76262
2020-03-17 12:12:40 -04:00
Yaxun (Sam) Liu
36f480f22c
Revert "[CUDA][HIP][OpenMP] Add lib/Sema/UsedDeclVisitor.h after D70172"
...
This reverts commit c7fa409bcadaf4ddba1862b2e52349e0ab03d1b4.
2020-02-18 14:45:34 -05:00
Fangrui Song
c7fa409bca
[CUDA][HIP][OpenMP] Add lib/Sema/UsedDeclVisitor.h after D70172
2020-02-16 20:33:07 -08:00