[cfe-commits] r134731 - /cfe/trunk/lib/Sema/SemaCXXCast.cpp

Benjamin Kramer benny.kra at googlemail.com
Fri Jul 8 13:20:17 PDT 2011


Author: d0k
Date: Fri Jul  8 15:20:17 2011
New Revision: 134731

URL: http://llvm.org/viewvc/llvm-project?rev=134731&view=rev
Log:
Remove unused variable.

Modified:
    cfe/trunk/lib/Sema/SemaCXXCast.cpp

Modified: cfe/trunk/lib/Sema/SemaCXXCast.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaCXXCast.cpp?rev=134731&r1=134730&r2=134731&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaCXXCast.cpp (original)
+++ cfe/trunk/lib/Sema/SemaCXXCast.cpp Fri Jul  8 15:20:17 2011
@@ -1717,8 +1717,7 @@
     Kind = CK_Dependent;
     return Owned(CastExpr);
   }
-  
-  QualType origCastExprType = CastExpr->getType();
+
   if (VK == VK_RValue && !CastTy->isRecordType()) {
     ExprResult CastExprRes = DefaultFunctionArrayLvalueConversion(CastExpr);
     if (CastExprRes.isInvalid())





More information about the cfe-commits mailing list