From: Sebastian Redl Date: Mon, 5 Jan 2009 20:53:53 +0000 (+0000) Subject: Silence a GCC warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ef5db646a6f66bb23146c3e506c294f31adf018;p=clang Silence a GCC warning git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61747 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 021e9af676..eaa8b58b41 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -221,7 +221,7 @@ static void SetGlobalValueAttributes(const Decl *D, if (D->getAttr()) { // The dllimport attribute is overridden by a subsequent declaration as // dllexport. - if (!D->getAttr()) + if (!D->getAttr()) { // dllimport attribute can be applied only to function decls, not to // definitions. if (const FunctionDecl *FD = dyn_cast(D)) { @@ -229,6 +229,7 @@ static void SetGlobalValueAttributes(const Decl *D, GV->setLinkage(llvm::Function::DLLImportLinkage); } else GV->setLinkage(llvm::Function::DLLImportLinkage); + } } } else { if (IsInternal) {