]> granicus.if.org Git - clang/commitdiff
Silence VC warning C4715: '`anonymous namespace'::getNativeVectorSizeForA VXABI' :
authorYaron Keren <yaron.keren@gmail.com>
Tue, 23 Jun 2015 09:45:42 +0000 (09:45 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Tue, 23 Jun 2015 09:45:42 +0000 (09:45 +0000)
not all control paths return a value.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240389 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInfo.cpp

index 00fe2bf02252d6dd4e35cfe0747e92bf452f2b22..05eafb9abac5c0ae616103dadc14a470cf5a9a17 100644 (file)
@@ -1408,6 +1408,7 @@ static unsigned getNativeVectorSizeForAVXABI(X86AVXABILevel AVXLevel) {
   case X86AVXABILevel::None:
     return 128;
   }
+  llvm_unreachable("Unknown AVXLevel");
 }
 
 /// X86_64ABIInfo - The X86_64 ABI information.