]> 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>
Fri, 14 Jun 2019 17:46:38 +0000 (17:46 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 14 Jun 2019 17:46:38 +0000 (17:46 +0000)
commit263516059c94b57c33e29b489c8dbe751569cbd4
tree97ed991918e4dd7080b5fd97360cba10d8da2661
parenta209544fdd0887b83521c9d5f9f9d8b39638624c
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 r363337, reverted in r363352.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363429 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