forked from OSchip/llvm-project
Remove extra ';' to silent compiler warning.
- Plus extra style formatting. llvm-svn: 366010
This commit is contained in:
parent
e0363adb75
commit
124cae7d3f
|
@ -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<ConstantExpr>(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 {
|
||||
|
||||
|
|
Loading…
Reference in New Issue