]> granicus.if.org Git - clang/commit
More work on ScalarExprEmitter::EmitCastExpr: for every cast kind, either
authorEli Friedman <eli.friedman@gmail.com>
Fri, 27 Nov 2009 04:41:50 +0000 (04:41 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 27 Nov 2009 04:41:50 +0000 (04:41 +0000)
commitd888962cff03b543fbe9ac6051ec6addf5b993b4
tree7d4ff4da45640d0349d719c7635063a89a342251
parent8c3e7e7ddafe26f236741fb25e2898be4f3230ea
More work on ScalarExprEmitter::EmitCastExpr: for every cast kind, either
implement it explicitly or assert that it doesn't make sense for a scalar.
This caught a couple interesting issues: one, CK_BaseToDerivedMemberPointer
casts were getting silently miscompiled, and two, Sema was constructing some
strange implicit casts of type CK_UserDefinedConversion.

The change in SemaExprCXX makes sure the cast kinds are getting set correctly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89987 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprScalar.cpp
lib/Sema/SemaExprCXX.cpp