From d03d99da163f0682c8a88ae3541725c2883d5bf8 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Tue, 5 Mar 2013 01:27:54 +0000 Subject: Silence a number of static analyzer warnings with assertions and such. No functionality change. llvm-svn: 176469 --- clang/lib/CodeGen/CGExprConstant.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/CodeGen/CGExprConstant.cpp') diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp index 4344f940459..e3e5d666051 100644 --- a/clang/lib/CodeGen/CGExprConstant.cpp +++ b/clang/lib/CodeGen/CGExprConstant.cpp @@ -1214,6 +1214,8 @@ llvm::Constant *CodeGenModule::EmitConstantValue(const APValue &Value, if (I < NumInitElts) C = EmitConstantValueForMemory(Value.getArrayInitializedElt(I), CAT->getElementType(), CGF); + else + assert(Filler && "Missing filler for implicit elements of initializer"); if (I == 0) CommonElementType = C->getType(); else if (C->getType() != CommonElementType) -- cgit v1.2.3