diff options
author | Erich Keane <erich.keane@intel.com> | 2018-07-05 15:52:58 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2018-07-05 15:52:58 +0000 |
commit | feb79d981fdf259f32f6b6353a20624f580db2c0 (patch) | |
tree | 8909450f421577b18a6f06ea6b811ab8a7cd6d0f /lib/Frontend/CompilerInvocation.cpp | |
parent | aa316d40ec297e14b96d189f408f0a15ed92ddac (diff) | |
download | clang-feb79d981fdf259f32f6b6353a20624f580db2c0.tar.gz |
Fix __builtin_*_overflow when out-param isn't constexpr
As brought up on cfe-commits[1], r334650 causes the dependency of the
out parameter to the __builtin_*_overflow functions to be ignored. The result
was a usage that was otherwise constexpr (both operands to the operation were
constexpr) would be evaluated, but the out parameter wouldn't be modified, so
it would still be 'undef'.
This patch correctly handles the return value of handleAssignment to ensure that
this value is properly considered/evaluated.
[1] http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20180702/233667.html
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions