Reorder initializers in CallStackFrame so that we don't get a warning.
authorSamuel Antao <sfantao@us.ibm.com>
Mon, 19 Sep 2016 18:13:13 +0000 (18:13 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Mon, 19 Sep 2016 18:13:13 +0000 (18:13 +0000)
llvm-svn: 281923

clang/lib/AST/ExprConstant.cpp

index 3271d1e..198e299 100644 (file)
@@ -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;
 }