From: Davide Italiano Date: Sat, 30 Sep 2017 21:49:15 +0000 (+0000) Subject: [Analysis] Remove unused makeLvalueToRValue variant. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=965b68e55787c6e1fa25bc03a88df0a90ad745ca;p=clang [Analysis] Remove unused makeLvalueToRValue variant. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314605 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/BodyFarm.cpp b/lib/Analysis/BodyFarm.cpp index 6ca758e82f..acab7c5e91 100644 --- a/lib/Analysis/BodyFarm.cpp +++ b/lib/Analysis/BodyFarm.cpp @@ -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::makeLvalueToRvalue(const Expr *Arg, QualType Ty) { 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,