diff options
author | Hans Wennborg <hans@hanshq.net> | 2019-02-13 10:47:50 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2019-02-13 10:47:50 +0000 |
commit | 61fc5f8f40a473b160a06bda016905d831eeff14 (patch) | |
tree | f23b36a55baca4dd784f500fa9736b2332c667a6 /include/clang/Basic/Attr.td | |
parent | 8ffe5246a3a29bb151f1ad261a5d342f5d328eff (diff) |
Revert r350404
This caused https://bugs.llvm.org/show_bug.cgi?id=40642:
"After 350404, clang drops volatile load"
> Refactor the way we handle diagnosing unused expression results.
>
> Rather than sprinkle calls to DiagnoseUnusedExprResult() around in places
> where we want diagnostics, we now diagnose unused expression statements and
> full expressions in a more generic way when acting on the final expression
> statement. This results in more appropriate diagnostics for [[nodiscard]] where
> we were previously lacking them, such as when the body of a for loop is not a
> compound statement.
>
> This patch fixes PR39837.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_80@353935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Attr.td')
0 files changed, 0 insertions, 0 deletions