summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/import-syntax.c
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2017-04-29 00:07:27 +0000
committerNick Lewycky <nicholas@mxc.ca>2017-04-29 00:07:27 +0000
commit19ae6dc853d3d4f867a6d1308f3c3fcca754a7a2 (patch)
treeee057e33fb728e9315b7be34f7730dc87e866d3b /clang/test/Modules/import-syntax.c
parent4346ae1a058c257bbd09e335e3a318d9e99fd2f1 (diff)
downloadbcm5719-llvm-19ae6dc853d3d4f867a6d1308f3c3fcca754a7a2.tar.gz
bcm5719-llvm-19ae6dc853d3d4f867a6d1308f3c3fcca754a7a2.zip
ObjCBoxedExpr can't be evaluated by the constant expression evaluator.
A boxed expression evaluates its subexpr and then calls an objc method to transform it into another value with pointer type. The objc method can never be constexpr and therefore this expression can never be evaluated. Fixes a miscompile boxing expressions with side-effects. Also make ObjCBoxedExpr handling a normal part of the expression evaluator instead of being the only case besides full-expression where we check for integer overflow. llvm-svn: 301721
Diffstat (limited to 'clang/test/Modules/import-syntax.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud