[PATCH] D42776: [Sema] Fix an assertion failure in constant expression evaluation of calls to functions with default arguments

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 26 09:03:50 PDT 2018


ahatanak updated this revision to Diff 139797.
ahatanak added a comment.

Assign an uninitialized APValue to a temporary instead of removing it from the temporary map when the temporary's lifetime has ended.


https://reviews.llvm.org/D42776

Files:
  include/clang/AST/APValue.h
  lib/AST/APValue.cpp
  lib/AST/ExprConstant.cpp
  test/SemaCXX/constant-expression-cxx1y.cpp
  test/SemaCXX/constexpr-default-arg.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42776.139797.patch
Type: text/x-patch
Size: 29104 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180326/0c84c131/attachment-0001.bin>


More information about the cfe-commits mailing list