Prechádzať zdrojové kódy

Placate gcc's -Wreturn-type

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149104 91177308-0d34-0410-b5e6-96231b3b80d8
Matt Beaumont-Gay 13 rokov pred
rodič
commit
ba4be25c90
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      lib/CodeGen/CGDecl.cpp

+ 1 - 0
lib/CodeGen/CGDecl.cpp

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