From: Samuel Antao Date: Mon, 19 Sep 2016 18:13:13 +0000 (+0000) Subject: Reorder initializers in CallStackFrame so that we don't get a warning. X-Git-Tag: llvmorg-4.0.0-rc1~9378 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1197a1612d89c019ef67e43e15f45c7615b13b4d;p=platform%2Fupstream%2Fllvm.git Reorder initializers in CallStackFrame so that we don't get a warning. llvm-svn: 281923 --- diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 3271d1e..198e299 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -961,8 +961,8 @@ void SubobjectDesignator::diagnosePointerArithmetic(EvalInfo &Info, CallStackFrame::CallStackFrame(EvalInfo &Info, SourceLocation CallLoc, const FunctionDecl *Callee, const LValue *This, APValue *Arguments) - : Info(Info), Caller(Info.CurrentCall), CallLoc(CallLoc), Callee(Callee), - Index(Info.NextCallIndex++), This(This), Arguments(Arguments) { + : Info(Info), Caller(Info.CurrentCall), Callee(Callee), This(This), + Arguments(Arguments), CallLoc(CallLoc), Index(Info.NextCallIndex++) { Info.CurrentCall = this; ++Info.CallStackDepth; }