Skip to content

Commit 1654ef0

Browse files
author
Sebastian Redl
committed
Silence a GCC warning
llvm-svn: 61747
1 parent baad4e7 commit 1654ef0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,15 @@ static void SetGlobalValueAttributes(const Decl *D,
221221
if (D->getAttr<DLLImportAttr>()) {
222222
// The dllimport attribute is overridden by a subsequent declaration as
223223
// dllexport.
224-
if (!D->getAttr<DLLExportAttr>())
224+
if (!D->getAttr<DLLExportAttr>()) {
225225
// dllimport attribute can be applied only to function decls, not to
226226
// definitions.
227227
if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
228228
if (!FD->getBody())
229229
GV->setLinkage(llvm::Function::DLLImportLinkage);
230230
} else
231231
GV->setLinkage(llvm::Function::DLLImportLinkage);
232+
}
232233
}
233234
} else {
234235
if (IsInternal) {

0 commit comments

Comments
 (0)