Fixed "ArgSize may be used uninitialised" error when compiling with gcc.

llvm-svn: 192570
This commit is contained in:
Andy Gibbs 2013-10-14 07:02:04 +00:00
parent abc416f326
commit d9ba47271d
1 changed files with 1 additions and 1 deletions

View File

@ -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");