Based on usage, the NamedDecl is always set when constructing a CallingContext, but none of the other optional parameters are. Removing the optional parameters, and making the NamedDecl required.
No functional changes intended. llvm-svn: 203149
This commit is contained in:
parent
19842c437a
commit
69bb592ad1
|
@ -172,12 +172,9 @@ private:
|
|||
const Expr* const* FunArgs; // Function arguments
|
||||
CallingContext* PrevCtx; // The previous context; or 0 if none.
|
||||
|
||||
CallingContext(const NamedDecl *D = 0, const Expr *S = 0,
|
||||
unsigned N = 0, const Expr* const *A = 0,
|
||||
CallingContext *P = 0)
|
||||
: AttrDecl(D), SelfArg(S), SelfArrow(false),
|
||||
NumArgs(N), FunArgs(A), PrevCtx(P)
|
||||
{ }
|
||||
CallingContext(const NamedDecl *D)
|
||||
: AttrDecl(D), SelfArg(0), SelfArrow(false), NumArgs(0), FunArgs(0),
|
||||
PrevCtx(0) {}
|
||||
};
|
||||
|
||||
typedef SmallVector<SExprNode, 4> NodeVector;
|
||||
|
|
Loading…
Reference in New Issue