[PATCH] D34992: Emit static constexpr member as available_externally definition

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 5 16:08:06 PDT 2017


ahatanak added inline comments.


================
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:2376
+    const VarDecl *InitDecl;
+    const Expr *InitExpr = D->getAnyInitializer(InitDecl);
+    if (InitExpr) {
----------------
Does getAnyInitializer ever return a null pointer here when D is a c++11 constexpr?


https://reviews.llvm.org/D34992





More information about the cfe-commits mailing list