summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprConstant.cpp
diff options
context:
space:
mode:
authorSamuel Antao <sfantao@us.ibm.com>2016-09-19 18:13:13 +0000
committerSamuel Antao <sfantao@us.ibm.com>2016-09-19 18:13:13 +0000
commit1197a1612d89c019ef67e43e15f45c7615b13b4d (patch)
tree201aad695a8317448234b29cc405bfb2563818ab /clang/lib/AST/ExprConstant.cpp
parent92b146e5fa0f80bda060e30ef0ee74243e3acc7a (diff)
downloadbcm5719-llvm-1197a1612d89c019ef67e43e15f45c7615b13b4d.tar.gz
bcm5719-llvm-1197a1612d89c019ef67e43e15f45c7615b13b4d.zip
Reorder initializers in CallStackFrame so that we don't get a warning.
llvm-svn: 281923
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r--clang/lib/AST/ExprConstant.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 3271d1e52d7..198e299d442 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;
}
OpenPOWER on IntegriCloud