aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ExprClassification.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-01-03 17:00:12 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-01-03 17:00:12 +0000
commit409af508589990413231e9ac567db1289de1b18c (patch)
tree6920721e1eaa3ddf3dac9762ad923d0989461406 /clang/lib/AST/ExprClassification.cpp
parentd73bfba7ebc915214c93e93652eac8685c005262 (diff)
downloadllvm-409af508589990413231e9ac567db1289de1b18c.zip
llvm-409af508589990413231e9ac567db1289de1b18c.tar.gz
llvm-409af508589990413231e9ac567db1289de1b18c.tar.bz2
Volatile reads are side-effecting operations, but in the general case of access through a volatile-qualified type, we're not certain of the underlying object's side-effects on access.
Treat volatile accesses as "maybe" instead of "definite" side effects for the purposes of warning on evaluations in an unevaluated context. No longer diagnose on idiomatic code like: int * volatile v; (void)sizeof(*v); llvm-svn: 225116
Diffstat (limited to 'clang/lib/AST/ExprClassification.cpp')
0 files changed, 0 insertions, 0 deletions