r317052 - Make helper function static. NFC.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 31 16:23:36 PDT 2017
Author: d0k
Date: Tue Oct 31 16:23:36 2017
New Revision: 317052
URL: http://llvm.org/viewvc/llvm-project?rev=317052&view=rev
Log:
Make helper function static. NFC.
Modified:
cfe/trunk/lib/AST/Type.cpp
Modified: cfe/trunk/lib/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Type.cpp?rev=317052&r1=317051&r2=317052&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Type.cpp (original)
+++ cfe/trunk/lib/AST/Type.cpp Tue Oct 31 16:23:36 2017
@@ -2182,7 +2182,7 @@ bool QualType::unionHasUniqueObjectRepre
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<RecordType>()->getDecl();
More information about the cfe-commits
mailing list