From: Benjamin Kramer Date: Tue, 31 Oct 2017 23:23:36 +0000 (+0000) Subject: Make helper function static. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f13e3eb1bc8ce6c27ab73790fb29dddcd841d37;p=clang Make helper function static. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317052 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 5e7cf34704..d0707a4a73 100644 --- a/lib/AST/Type.cpp +++ b/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();