]> granicus.if.org Git - clang/commit
Fix nodiscard for volatile references
authorErich Keane <erich.keane@intel.com>
Thu, 19 Oct 2017 15:58:58 +0000 (15:58 +0000)
committerErich Keane <erich.keane@intel.com>
Thu, 19 Oct 2017 15:58:58 +0000 (15:58 +0000)
commit9d5150b14a04c50ca295942b0db82d8757389180
tree4a2cdd702139fe25ad2ba6a1bd5b78581a320e30
parenta16acc3f8de0bdf32160291905cad9907e4f1431
Fix nodiscard for volatile references

As reported here https://bugs.llvm.org/show_bug.cgi?id=34988
[[nodiscard]] warnings were not being suppressed for
volatile-ref return values.

Differential Revision: https://reviews.llvm.org/D39075

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316166 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp
test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p2.cpp