diff options
author | John McCall <rjmccall@apple.com> | 2010-11-30 17:58:55 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-11-30 17:58:55 +0000 |
commit | 20fbe7c4772d537c1f779b1ff89cbb57d1d9afff (patch) | |
tree | 3397a078405505083393d33587047acb8ed3f0ac /lib/CodeGen/CGExprScalar.cpp | |
parent | 67aba816901503d9cf7ba699525fa62cc7f8e5e4 (diff) |
L-value to r-value conversion is not ready for prime-time.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index a46afe6f65..e5ea26c24b 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -1101,10 +1101,6 @@ Value *ScalarExprEmitter::EmitCastExpr(CastExpr *CE) { case CK_ToUnion: llvm_unreachable("scalar cast to non-scalar value"); break; - - case CK_LValueToRValue: - assert(CGF.getContext().hasSameUnqualifiedType(E->getType(), DestTy)); - return Visit(const_cast<Expr*>(E)); case CK_IntegralToPointer: { Value *Src = Visit(const_cast<Expr*>(E)); |