From: Andy Gibbs Date: Mon, 14 Oct 2013 07:02:04 +0000 (+0000) Subject: Fixed "ArgSize may be used uninitialised" error when compiling with gcc. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed9967eb7eff00f5ce61945540c5869559669408;p=clang Fixed "ArgSize may be used uninitialised" error when compiling with gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192570 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 8b8c90b3ef..ae44396895 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -5444,7 +5444,7 @@ llvm::Value *XCoreABIInfo::EmitVAArg(llvm::Value *VAListAddr, QualType Ty, AI.setCoerceToType(ArgTy); llvm::Type *ArgPtrTy = llvm::PointerType::getUnqual(ArgTy); llvm::Value *Val; - uint64_t ArgSize; + uint64_t ArgSize = 0; switch (AI.getKind()) { case ABIArgInfo::Expand: llvm_unreachable("Unsupported ABI kind for va_arg");