summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprConstant.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-04-04 23:29:43 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-04-04 23:29:43 +0000
commit8921007090c915236c011aaebe466d0c0dcfb677 (patch)
tree71a0958b35259aa6fd27449c090dc200cfd8976c /clang/lib/AST/ExprConstant.cpp
parentb10079e936be02c375333f89e87cd02900d4b72d (diff)
downloadbcm5719-llvm-8921007090c915236c011aaebe466d0c0dcfb677.tar.gz
bcm5719-llvm-8921007090c915236c011aaebe466d0c0dcfb677.zip
Move local helper class into anonymous namespace.
llvm-svn: 265364
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r--clang/lib/AST/ExprConstant.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 3969f310fc9..72497d3b6b0 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -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,
OpenPOWER on IntegriCloud