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)
commitd2e69dfddbed3dccc7926cdf01e6aa32f47a0570
tree19f42d86224a092777aab4fb1f18186668d7f54f
parent2f3e8b3d2e4c8679d891568ddc7b6fc73d19c4aa
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.

llvm-svn: 345562
clang/lib/AST/Expr.cpp
clang/lib/CodeGen/CGExprAgg.cpp
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaInit.cpp
clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
clang/test/Analysis/nullptr.cpp
clang/test/CXX/drs/dr21xx.cpp
clang/test/CodeGenCXX/nullptr.cpp
clang/www/cxx_dr_status.html