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 | 1654ef0187b781b5c4216e2a6747eaf0f827e20b (patch) | |
tree | 0d13bf2daf9512931e94c184e28ab0ea738e3493 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | baad4e765f5a03af2cbd5fbccffb8736badd517a (diff) | |
download | bcm5719-llvm-1654ef0187b781b5c4216e2a6747eaf0f827e20b.tar.gz bcm5719-llvm-1654ef0187b781b5c4216e2a6747eaf0f827e20b.zip |
Silence a GCC warning
llvm-svn: 61747
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 021e9af6765..eaa8b58b41d 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<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) { |