def Trigraphs : DiagGroup<"trigraphs">;
def : DiagGroup<"type-limits">;
-
+def Uninitialized : DiagGroup<"uninitialized">;
def UninitializedMaybe : DiagGroup<"uninitialized-maybe">;
def UnknownPragmas : DiagGroup<"unknown-pragmas">;
def UnknownAttributes : DiagGroup<"unknown-attributes">;
return 0;
const CFGStmt *cstmt = block->front().getAs<CFGStmt>();
+ if (!cstmt)
+ return 0;
+
BinaryOperator *b = llvm::dyn_cast_or_null<BinaryOperator>(cstmt->getStmt());
if (!b || !b->isLogicalOp())
CheckUnreachable(S, AC);
if (Diags.getDiagnosticLevel(diag::warn_uninit_var, D->getLocStart())
+ != Diagnostic::Ignored ||
+ Diags.getDiagnosticLevel(diag::warn_maybe_uninit_var, D->getLocStart())
!= Diagnostic::Ignored) {
ASTContext &ctx = D->getASTContext();
llvm::OwningPtr<CFG> tmpCFG;