[Analysis] Remove unused makeLvalueToRValue variant.

llvm-svn: 314605
This commit is contained in:
Davide Italiano 2017-09-30 21:49:15 +00:00
parent d4e450aca2
commit 4c1d2256ff
1 changed files with 0 additions and 13 deletions

View File

@ -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,