[LLVMbugs] [Bug 24325] Compiler generating an unnecessary volatile load

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 30 18:06:42 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24325

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Clang is correct; in C++11 onwards, an expression-statement is a
discarded-value expression, and if it has volatile type, an extra
lvalue-to-rvalue conversion is performed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150731/6b4bed79/attachment.html>


More information about the llvm-bugs mailing list