]> granicus.if.org Git - clang/commit
Correct behavior of __builtin_*_overflow and constexpr.
authorErich Keane <erich.keane@intel.com>
Wed, 13 Jun 2018 13:25:11 +0000 (13:25 +0000)
committerErich Keane <erich.keane@intel.com>
Wed, 13 Jun 2018 13:25:11 +0000 (13:25 +0000)
commit79be246d396dc27a00ba7cbdfe032945c6908b5c
treeb37db1360c37e152e564e3352387986395d795f9
parent85ffa9bd6b859e0aab115e6985678252669e8e65
Correct behavior of __builtin_*_overflow and constexpr.

Enable these builtins to be called across a lambda
boundary with captureless const/constexpr, as brought up by
Eli here: https://reviews.llvm.org/D48040

Differential Revision: https://reviews.llvm.org/D48053

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334597 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/SemaCXX/builtins-overflow.cpp [new file with mode: 0644]