[cfe-commits] r81844 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp
Anders Carlsson
andersca at mac.com
Mon Sep 14 22:49:31 PDT 2009
Author: andersca
Date: Tue Sep 15 00:49:31 2009
New Revision: 81844
URL: http://llvm.org/viewvc/llvm-project?rev=81844&view=rev
Log:
Revert for real.
Modified:
cfe/trunk/lib/Sema/SemaExprCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=81844&r1=81843&r2=81844&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Tue Sep 15 00:49:31 2009
@@ -991,11 +991,9 @@
if (CastArg.isInvalid())
return true;
- QualType CastArgType = ((Expr *)CastArg.get())->getType();
- From =
- new (Context) ImplicitCastExpr(CastArgType, CastKind,
- CastArg.takeAs<Expr>(),
- CastArgType->isLValueReferenceType());
+ From = new (Context) ImplicitCastExpr(ToType.getNonReferenceType(),
+ CastKind, CastArg.takeAs<Expr>(),
+ ToType->isLValueReferenceType());
return false;
}
More information about the cfe-commits
mailing list