From 0e71fd195737baf75f1b062f9e964dd5ad266864 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 31 Oct 2017 23:23:36 +0000 Subject: [PATCH] Make helper function static. NFC. llvm-svn: 317052 --- clang/lib/AST/Type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp index 5e7cf34..d0707a4 100644 --- a/clang/lib/AST/Type.cpp +++ b/clang/lib/AST/Type.cpp @@ -2182,7 +2182,7 @@ bool QualType::unionHasUniqueObjectRepresentations( return true; } -bool isStructEmpty(QualType Ty) { +static bool isStructEmpty(QualType Ty) { assert(Ty.getTypePtr()->isStructureOrClassType() && "Must be struct or class"); const RecordDecl *RD = Ty.getTypePtr()->getAs()->getDecl(); -- 2.7.4