summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-10-03 17:18:37 +0000
committerHal Finkel <hfinkel@anl.gov>2014-10-03 17:18:37 +0000
commit0dd05d4b5936adcc23a632d9061e9deab57bd088 (patch)
tree428ab1998b0085d883a6d3da98dc330d71a94b5a /clang/lib/Parse/ParseDecl.cpp
parent6a654333c5da2643b936e04e1e6b091c6dcb7fd2 (diff)
downloadbcm5719-llvm-0dd05d4b5936adcc23a632d9061e9deab57bd088.tar.gz
bcm5719-llvm-0dd05d4b5936adcc23a632d9061e9deab57bd088.zip
constexpr evaluation for __builtin_assume_aligned
Richard noted in the review of r217349 that extra handling of __builtin_assume_aligned inside of the expression evaluator was needed. He was right, and this should address the concerns raised, namely: 1. The offset argument to __builtin_assume_aligned can have side effects, and we need to make sure that all arguments are properly evaluated. 2. If the alignment assumption does not hold, that introduces undefined behavior, and undefined behavior cannot appear inside a constexpr. and hopefully the diagnostics produced are detailed enough to explain what is going on. llvm-svn: 218992
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud