forked from OSchip/llvm-project
[Analysis] Remove unused makeLvalueToRValue variant.
llvm-svn: 314605
This commit is contained in:
parent
d4e450aca2
commit
4c1d2256ff
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue