]> granicus.if.org Git - clang/commit
PR23833, DR2140: an lvalue-to-rvalue conversion on a glvalue of type
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 13 Jun 2019 23:31:04 +0000 (23:31 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 13 Jun 2019 23:31:04 +0000 (23:31 +0000)
commit7bbf5d1de0007b0c1c09cb7af6d6863df6faf968
treeaf9f1d2d120510b3e5f6195e81c340dbdff07d6a
parentf46e18fb70234e4f7d162184cd12377360b508e8
PR23833, DR2140: an lvalue-to-rvalue conversion on a glvalue of type
nullptr_t does not access memory.

We now reuse CK_NullToPointer to represent a conversion from a glvalue
of type nullptr_t to a prvalue of nullptr_t where necessary.

This reinstates r345562, reverted in r346065, now that CodeGen's
handling of non-odr-used variables has been fixed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363337 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp
lib/CodeGen/CGExprAgg.cpp
lib/CodeGen/CGExprScalar.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaInit.cpp
lib/StaticAnalyzer/Core/ExprEngineC.cpp
test/Analysis/nullptr.cpp
test/CXX/drs/dr21xx.cpp
test/CodeGenCXX/nullptr.cpp
www/cxx_dr_status.html