Skip to content

Commit

Permalink
[llvm-lib] Pass the right value of MingwDef to parseCOFFModuleDefinition
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mstorsjo committed Jun 8, 2023
1 parent 6540157 commit 1d96e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ int llvm::libDriverMain(ArrayRef<const char *> ArgsArr) {
}

Expected<COFFModuleDefinition> Def =
parseCOFFModuleDefinition(*MB, LibMachine, true);
parseCOFFModuleDefinition(*MB, LibMachine, /*MingwDef=*/false);

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

0 comments on commit 1d96e24

Please sign in to comment.