]> granicus.if.org Git - clang/commit
Fix behavior of __builtin_bit_cast when the From and To types are the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 7 Oct 2019 02:45:12 +0000 (02:45 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 7 Oct 2019 02:45:12 +0000 (02:45 +0000)
commit231ea9998762f44267950a4c864442226b839c25
tree056022c3b1523916246628733e3f13634894ad6d
parent1c3c183da3437d9580a66c719a1cb54522d530ee
Fix behavior of __builtin_bit_cast when the From and To types are the
same.

We were missing the lvalue-to-rvalue conversion entirely in this case,
and in fact still need the full CK_LValueToRValueBitCast conversion to
perform a load with no TBAA.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373874 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/OperationKinds.def
lib/Sema/SemaCast.cpp
test/CodeGenCXX/builtin-bit-cast-no-tbaa.cpp
test/SemaCXX/constexpr-builtin-bit-cast.cpp