diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-01-05 20:53:53 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-01-05 20:53:53 +0000 |
commit | 3ef5db646a6f66bb23146c3e506c294f31adf018 (patch) | |
tree | 0f6023bcf3d60755f23d07282d1a668e0397f5ac /lib/CodeGen/CodeGenModule.cpp | |
parent | 64b45f7e0d3167f040841ac2920aead7f080730d (diff) |
Silence a GCC warning
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<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) { |