Fix -Wcovered-switch-default warning from r188664

llvm-svn: 188672
This commit is contained in:
Alexey Samsonov 2013-08-19 13:07:12 +00:00
parent 784a580312
commit eb4690c76c
1 changed files with 1 additions and 1 deletions

View File

@ -5402,7 +5402,6 @@ llvm::Value *XCoreABIInfo::EmitVAArg(llvm::Value *VAListAddr, QualType Ty,
// handle the argument
llvm::Type *ArgPtrTy = llvm::PointerType::getUnqual(ArgTy);
switch (AI.getKind()) {
default:
case ABIArgInfo::Expand:
llvm_unreachable("Unsupported ABI kind for va_arg");
case ABIArgInfo::Ignore:
@ -5416,6 +5415,7 @@ llvm::Value *XCoreABIInfo::EmitVAArg(llvm::Value *VAListAddr, QualType Ty,
ArgAddr = Builder.CreateLoad(ArgAddr);
return Builder.CreatePointerCast(ArgAddr, ArgPtrTy);
}
llvm_unreachable("Unknown ABI kind");
}
//===----------------------------------------------------------------------===//