]> granicus.if.org Git - clang/commitdiff
Placate gcc's -Wreturn-type
authorMatt Beaumont-Gay <matthewbg@google.com>
Fri, 27 Jan 2012 00:46:27 +0000 (00:46 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Fri, 27 Jan 2012 00:46:27 +0000 (00:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149104 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDecl.cpp

index 018521bef896273230bff5a235231092c652d4f3..13b9e27d5d8cafa321c77cffcfee282a7136c69e 100644 (file)
@@ -1166,6 +1166,7 @@ CodeGenFunction::getDestroyer(QualType::DestructionKind kind) {
   case QualType::DK_objc_weak_lifetime:
     return destroyARCWeak;
   }
+  llvm_unreachable("Unknown DestructionKind");
 }
 
 /// pushDestroy - Push the standard destructor for the given type.