summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprConstant.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-09 16:47:52 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-09 16:47:52 +0000
commit8407df72a3b7a6bee199ce321fa4731dc8be241b (patch)
treef8b9822aa347c52ebe19ddb213caf297edf54c0f /clang/lib/AST/ExprConstant.cpp
parent58ea3e35d0139c3afd5a07a0ca9a7fcf70ac6eb2 (diff)
downloadbcm5719-llvm-8407df72a3b7a6bee199ce321fa4731dc8be241b.tar.gz
bcm5719-llvm-8407df72a3b7a6bee199ce321fa4731dc8be241b.zip
Make helper functions static. NFC.
Found by -Wmissing-prototypes. llvm-svn: 231668
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r--clang/lib/AST/ExprConstant.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 083572bc3e1..280ba57e327 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -1406,7 +1406,7 @@ static bool CheckConstantExpression(EvalInfo &Info, SourceLocation DiagLoc,
return true;
}
-const ValueDecl *GetLValueBaseDecl(const LValue &LVal) {
+static const ValueDecl *GetLValueBaseDecl(const LValue &LVal) {
return LVal.Base.dyn_cast<const ValueDecl*>();
}
@@ -2502,8 +2502,9 @@ static bool AreElementsOfSameArray(QualType ObjType,
}
/// Find the complete object to which an LValue refers.
-CompleteObject findCompleteObject(EvalInfo &Info, const Expr *E, AccessKinds AK,
- const LValue &LVal, QualType LValType) {
+static CompleteObject findCompleteObject(EvalInfo &Info, const Expr *E,
+ AccessKinds AK, const LValue &LVal,
+ QualType LValType) {
if (!LVal.Base) {
Info.Diag(E, diag::note_constexpr_access_null) << AK;
return CompleteObject();
OpenPOWER on IntegriCloud