r314605 - [Analysis] Remove unused makeLvalueToRValue variant.
Davide Italiano via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 30 14:49:15 PDT 2017
Author: davide
Date: Sat Sep 30 14:49:15 2017
New Revision: 314605
URL: http://llvm.org/viewvc/llvm-project?rev=314605&view=rev
Log:
[Analysis] Remove unused makeLvalueToRValue variant.
Modified:
cfe/trunk/lib/Analysis/BodyFarm.cpp
Modified: cfe/trunk/lib/Analysis/BodyFarm.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BodyFarm.cpp?rev=314605&r1=314604&r2=314605&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/BodyFarm.cpp (original)
+++ cfe/trunk/lib/Analysis/BodyFarm.cpp Sat Sep 30 14:49:15 2017
@@ -78,10 +78,6 @@ public:
/// Create an implicit cast for lvalue-to-rvaluate conversions.
ImplicitCastExpr *makeLvalueToRvalue(const Expr *Arg, QualType Ty);
- /// Create an implicit cast for lvalue-to-rvaluate conversions.
- ImplicitCastExpr *makeLvalueToRvalue(const Expr *Arg,
- bool GetNonReferenceType = false);
-
/// Make RValue out of variable declaration, creating a temporary
/// DeclRefExpr in the process.
ImplicitCastExpr *
@@ -164,15 +160,6 @@ ImplicitCastExpr *ASTMaker::makeLvalueTo
return makeImplicitCast(Arg, Ty, CK_LValueToRValue);
}
-ImplicitCastExpr *ASTMaker::makeLvalueToRvalue(const Expr *Arg,
- bool GetNonReferenceType) {
-
- QualType Type = Arg->getType();
- if (GetNonReferenceType)
- Type = Type.getNonReferenceType();
- return makeImplicitCast(Arg, Type, CK_LValueToRValue);
-}
-
ImplicitCastExpr *
ASTMaker::makeLvalueToRvalue(const VarDecl *Arg,
bool RefersToEnclosingVariableOrCapture,
More information about the cfe-commits
mailing list