]> granicus.if.org Git - clang/commitdiff
Move local helper class into anonymous namespace.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 4 Apr 2016 23:29:43 +0000 (23:29 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 4 Apr 2016 23:29:43 +0000 (23:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265364 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp

index 3969f310fc97d371042bedb47a3831a3735455b2..72497d3b6b0b30b250e6308611f0c35bacc15cc2 100644 (file)
@@ -3354,6 +3354,7 @@ static bool EvaluateCond(EvalInfo &Info, const VarDecl *CondDecl,
   return EvaluateAsBooleanCondition(Cond, Result, Info);
 }
 
+namespace {
 /// \brief A location where the result (returned value) of evaluating a
 /// statement should be stored.
 struct StmtResult {
@@ -3362,6 +3363,7 @@ struct StmtResult {
   /// The location containing the result, if any (used to support RVO).
   const LValue *Slot;
 };
+}
 
 static EvalStmtResult EvaluateStmt(StmtResult &Result, EvalInfo &Info,
                                    const Stmt *S,