We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dbaf93 commit ba7e600Copy full SHA for ba7e600
lib/IRGen/TypeLayoutVerifier.cpp
@@ -43,7 +43,7 @@ irgen::emitTypeLayoutVerifier(IRGenFunction &IGF,
43
/*var arg*/ false);
44
auto verifierFn = IGF.IGM.Module.getOrInsertFunction(
45
"_swift_debug_verifyTypeLayoutAttribute", verifierFnTy);
46
- if (IGF.IGM.Triple.isOSBinFormatCOFF() && !IGF.IGM.Triple.isOSCygMing())
+ if (IGF.IGM.useDllStorage())
47
if (auto *F = dyn_cast<llvm::Function>(verifierFn))
48
F->setDLLStorageClass(llvm::GlobalValue::DLLImportStorageClass);
49
0 commit comments