]> granicus.if.org Git - clang/commit
A "constexpr" is evaluated in a constant context. Make sure this is reflected
authorBill Wendling <isanbard@gmail.com>
Mon, 26 Nov 2018 02:10:53 +0000 (02:10 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 26 Nov 2018 02:10:53 +0000 (02:10 +0000)
commitae4b8efe92f4f30b36da73166ac89a7dc50ba917
tree229060345ab939e72685e7eb5203fbe750897d76
parente14fa75399b8042875b8544a82fa924072dda7ce
A "constexpr" is evaluated in a constant context. Make sure this is reflected
if a __builtin_constant_p() is a part of a constexpr.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347531 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
test/SemaCXX/constant-expression-cxx1y.cpp