]> 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>
Tue, 30 Oct 2018 02:02:49 +0000 (02:02 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 30 Oct 2018 02:02:49 +0000 (02:02 +0000)
commit33b0abe401750718bbd721690a450be981c11562
tree128ceb88c78e9c21e4db19370673eb22333c4458
parent09b3136b5b683b6de8dfd465c0c8d3859f1a2689
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.

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