]> granicus.if.org Git - clang/commitdiff
assert -> llvm_unreachable
authorDouglas Gregor <dgregor@apple.com>
Mon, 26 Oct 2009 16:27:58 +0000 (16:27 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 26 Oct 2009 16:27:58 +0000 (16:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85125 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index ea84829b78a51048b7b481d6b6e688b113ec46d8..10f7d84ee8d08d9af6e4d37d77c9f3bf105baefa 100644 (file)
@@ -949,7 +949,7 @@ GetLinkageForVariable(ASTContext &Context, const VarDecl *VD) {
       return CodeGenModule::GVA_StrongExternal;
       
     case TSK_ExplicitInstantiationDeclaration:
-      assert(false && "Variable should not be instantiated");
+      llvm::llvm_unreachable("Variable should not be instantiated");
       // Fall through to treat this like any other instantiation.
         
     case TSK_ImplicitInstantiation: