[PATCH] D80981: [AST] Fix a crash on accessing a class without definition in constexpr function context.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 19 05:21:14 PDT 2020


hokein updated this revision to Diff 272018.
hokein marked an inline comment as done.
hokein added a comment.

Update per Richard's comment: do the error check in getDefaultInitValue, and
modify every caller of it to support the error handling.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80981/new/

https://reviews.llvm.org/D80981

Files:
  clang/lib/AST/ExprConstant.cpp
  clang/test/SemaCXX/constexpr-default-init-value-crash.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80981.272018.patch
Type: text/x-patch
Size: 7580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200619/80fa5c1c/attachment.bin>


More information about the cfe-commits mailing list