From: Rafael Espindola Date: Mon, 13 May 2013 14:05:53 +0000 (+0000) Subject: Fix a gcc warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77b502580d2d3a04ee0a83e9e22eb6b8d8be3ea6;p=clang Fix a gcc warning. In r181677 I removed this llvm_unreachable and it introduced a gcc warning. Add it back. Thanks to Patrik Hägglund for noticing it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181704 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 9901080101..49e3639e93 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -7838,6 +7838,8 @@ GVALinkage ASTContext::GetGVALinkageForVariable(const VarDecl *VD) { case TSK_ImplicitInstantiation: return GVA_TemplateInstantiation; } + + llvm_unreachable("Invalid Linkage!"); } bool ASTContext::DeclMustBeEmitted(const Decl *D) {