[PATCH] D25640: [CUDA] [AST] Allow isInlineDefinitionExternallyVisible to be called on functions without bodies.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 27 22:20:34 PDT 2016


rsmith accepted this revision.
rsmith added a comment.
This revision is now accepted and ready to land.

Looks great, thanks.



================
Comment at: clang/lib/Sema/SemaDecl.cpp:5762-5768
-#ifndef NDEBUG
-  // AST quite reasonably asserts that it's working on a function
-  // definition.  We don't really have a way to tell it that we're
-  // currently defining the function, so just lie to it in +Asserts
-  // builds.  This is an awful hack.
-  FD->setLazyBody(1);
-#endif
----------------
Wow.


https://reviews.llvm.org/D25640





More information about the cfe-commits mailing list