From 1654ef0187b781b5c4216e2a6747eaf0f827e20b Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Mon, 5 Jan 2009 20:53:53 +0000 Subject: Silence a GCC warning llvm-svn: 61747 --- clang/lib/CodeGen/CodeGenModule.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 021e9af67652..eaa8b58b41d5 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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) { -- cgit v1.2.3