forked from OSchip/llvm-project
Fix -Wcovered-switch-default warning from r188664
llvm-svn: 188672
This commit is contained in:
parent
784a580312
commit
eb4690c76c
|
@ -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");
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue