]> granicus.if.org Git - clang/commitdiff
Remove excessive padding from the struct CallStackFrame
authorAlexander Shaposhnikov <shal1t712@gmail.com>
Mon, 19 Sep 2016 15:57:29 +0000 (15:57 +0000)
committerAlexander Shaposhnikov <shal1t712@gmail.com>
Mon, 19 Sep 2016 15:57:29 +0000 (15:57 +0000)
The struct CallStackFrame is in lib/AST/ExprConstant.cpp
inside anonymous namespace.
This diff reorders the fields and removes excessive padding.
Test plan: make -j8 check-clang

Differential revision: https://reviews.llvm.org/D23901

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281907 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp

index 15b554bf27a0cfa77d41b89c10b861e428758e5c..3271d1e52d7107f27d230eec21620f18ed880731 100644 (file)
@@ -310,15 +310,9 @@ namespace {
     /// Parent - The caller of this stack frame.
     CallStackFrame *Caller;
 
-    /// CallLoc - The location of the call expression for this call.
-    SourceLocation CallLoc;
-
     /// Callee - The function which was called.
     const FunctionDecl *Callee;
 
-    /// Index - The call index of this call.
-    unsigned Index;
-
     /// This - The binding for the this pointer in this call, if any.
     const LValue *This;
 
@@ -333,6 +327,12 @@ namespace {
     /// Temporaries - Temporary lvalues materialized within this stack frame.
     MapTy Temporaries;
 
+    /// CallLoc - The location of the call expression for this call.
+    SourceLocation CallLoc;
+
+    /// Index - The call index of this call.
+    unsigned Index;
+
     CallStackFrame(EvalInfo &Info, SourceLocation CallLoc,
                    const FunctionDecl *Callee, const LValue *This,
                    APValue *Arguments);