r188672 - Fix -Wcovered-switch-default warning from r188664
Alexey Samsonov
samsonov at google.com
Mon Aug 19 06:07:12 PDT 2013
Author: samsonov
Date: Mon Aug 19 08:07:12 2013
New Revision: 188672
URL: http://llvm.org/viewvc/llvm-project?rev=188672&view=rev
Log:
Fix -Wcovered-switch-default warning from r188664
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=188672&r1=188671&r2=188672&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Mon Aug 19 08:07:12 2013
@@ -5402,7 +5402,6 @@ llvm::Value *XCoreABIInfo::EmitVAArg(llv
// 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(llv
ArgAddr = Builder.CreateLoad(ArgAddr);
return Builder.CreatePointerCast(ArgAddr, ArgPtrTy);
}
+ llvm_unreachable("Unknown ABI kind");
}
//===----------------------------------------------------------------------===//
More information about the cfe-commits
mailing list