Skip to content

Commit 1d96e24

Browse files
committed
[llvm-lib] Pass the right value of MingwDef to parseCOFFModuleDefinition
In llvm-lib cases, the MinGW specific behaviours shouldn't be enabled. Not adding any tests to check the corner case behaviours, as this simply was a mistake when this codepath was added in 395ec44 / D144765. Differential Revision: https://reviews.llvm.org/D152362
1 parent 6540157 commit 1d96e24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ int llvm::libDriverMain(ArrayRef<const char *> ArgsArr) {
384384
}
385385

386386
Expected<COFFModuleDefinition> Def =
387-
parseCOFFModuleDefinition(*MB, LibMachine, true);
387+
parseCOFFModuleDefinition(*MB, LibMachine, /*MingwDef=*/false);
388388

389389
if (!Def) {
390390
llvm::errs() << "error parsing definition\n"

0 commit comments

Comments
 (0)