From 47e55d20c4f679770465e02a07f02fbc06adbc17 Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Sat, 13 Jul 2019 19:49:39 +0000 Subject: [PATCH] Remove extra ';' to silent compiler warning. - Plus extra style formatting. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366010 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDecl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 73407afb49..1324abb04a 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -11082,7 +11082,8 @@ bool Sema::DeduceVariableDeclarationType(VarDecl *VDecl, bool DirectInit, return VDecl->isInvalidDecl(); } -void Sema::checkNonTrivialCUnionInInitializer(const Expr *Init, SourceLocation Loc) { +void Sema::checkNonTrivialCUnionInInitializer(const Expr *Init, + SourceLocation Loc) { if (auto *CE = dyn_cast(Init)) Init = CE->getSubExpr(); @@ -11113,7 +11114,7 @@ void Sema::checkNonTrivialCUnionInInitializer(const Expr *Init, SourceLocation L if (InitType.hasNonTrivialToPrimitiveCopyCUnion()) checkNonTrivialCUnion(InitType, Loc, NTCUC_CopyInit, NTCUK_Copy); } -}; +} namespace { -- 2.50.1