diff options
author | Richard Smith <richard@metafoo.co.uk> | 2020-05-27 17:20:15 -0700 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2020-05-27 17:26:29 -0700 |
commit | 00e5d38d40162d049f67b436ad42c9d05092e65c (patch) | |
tree | 62945eb67493a1a3e1cb940f1bbbd770b077726f /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | c94c5bf9cce8a4c7ad5e8abbc8f21bad5cf6b889 (diff) | |
download | llvm-00e5d38d40162d049f67b436ad42c9d05092e65c.zip llvm-00e5d38d40162d049f67b436ad42c9d05092e65c.tar.gz llvm-00e5d38d40162d049f67b436ad42c9d05092e65c.tar.bz2 |
Do not warn that an expression of the form (void)arr; is unused when
arr is a volatile non-local array.
This fixes a recent regression exposed by removing lvalue-to-rvalue
conversion of discarded volatile arrays. In passing, regularize the
rules we use to determine whether '(void)expr;' warns when expr is a
volatile glvalue.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions