diff options
author | Hal Finkel <hfinkel@anl.gov> | 2014-07-17 14:25:55 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2014-07-17 14:25:55 +0000 |
commit | f041733585024574a4965dd80e3931442bd8472d (patch) | |
tree | ed23b0c9aed88c7927097a20bc4336a2424017c2 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 9eef7423081e6427086a9243b380a9e254067b05 (diff) | |
download | llvm-f041733585024574a4965dd80e3931442bd8472d.zip llvm-f041733585024574a4965dd80e3931442bd8472d.tar.gz llvm-f041733585024574a4965dd80e3931442bd8472d.tar.bz2 |
Add an __assume side-effects warning
In MS-compatibility mode, we support the __assume builtin. The __assume builtin
does not evaluate its arguments, and we should issue a warning if __assume is
provided with an argument with side effects (because these effects will be
discarded).
This is similar in spirit to the warnings issued by other compilers (Intel
Diagnostic 2261, MS Compiler Warning C4557).
llvm-svn: 213266
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions