[cfe-commits] r61747 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Sebastian Redl
sebastian.redl at getdesigned.at
Mon Jan 5 12:53:53 PST 2009
Author: cornedbee
Date: Mon Jan 5 14:53:53 2009
New Revision: 61747
URL: http://llvm.org/viewvc/llvm-project?rev=61747&view=rev
Log:
Silence a GCC warning
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=61747&r1=61746&r2=61747&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Mon Jan 5 14:53:53 2009
@@ -221,7 +221,7 @@
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 @@
GV->setLinkage(llvm::Function::DLLImportLinkage);
} else
GV->setLinkage(llvm::Function::DLLImportLinkage);
+ }
}
} else {
if (IsInternal) {
More information about the cfe-commits
mailing list