]> granicus.if.org Git - clang/commitdiff
Silence a GCC warning
authorSebastian Redl <sebastian.redl@getdesigned.at>
Mon, 5 Jan 2009 20:53:53 +0000 (20:53 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Mon, 5 Jan 2009 20:53:53 +0000 (20:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61747 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index 021e9af6765207b5ca1cd516a995208006aec286..eaa8b58b41d52fac4d9ddb0c7f6c8e1e7e54d1b3 100644 (file)
@@ -221,7 +221,7 @@ static void SetGlobalValueAttributes(const Decl *D,
     if (D->getAttr<DLLImportAttr>()) {
       // The dllimport attribute is overridden by a subsequent declaration as
       // dllexport.
-      if (!D->getAttr<DLLExportAttr>())
+      if (!D->getAttr<DLLExportAttr>()) {
         // dllimport attribute can be applied only to function decls, not to
         // definitions.
         if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(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) {