summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 744bd75)
raw | patch | inline | side by side (parent: 744bd75)
author | Davide Italiano <davide@freebsd.org> | |
Sat, 30 Sep 2017 21:49:15 +0000 (21:49 +0000) | ||
committer | Davide Italiano <davide@freebsd.org> | |
Sat, 30 Sep 2017 21:49:15 +0000 (21:49 +0000) |
lib/Analysis/BodyFarm.cpp | patch | blob | history |
index 6ca758e82f912d9def169f3a826c75707baf076d..acab7c5e91a3f326610b175179e705627d296071 100644 (file)
/// 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 *
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,