Skip to content

Commit

Permalink
Fix C-assert regression for MinGW targets
Browse files Browse the repository at this point in the history
Introduced in ldc-developers#4667 and reported in the announce dlang forum.
  • Loading branch information
kinke committed Jun 12, 2024
1 parent 85c1b73 commit 93d29ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ static std::vector<PotentiallyLazyType> getCAssertFunctionParamTypes() {
const auto uint = Type::tuns32;

if (triple.isOSDarwin() || triple.isOSSolaris() || triple.isMusl() ||
global.params.isUClibcEnvironment || (triple.isOSGlibc() && triple.isGNUEnvironment())) {
global.params.isUClibcEnvironment || triple.isGNUEnvironment()) {
return {voidPtr, voidPtr, uint, voidPtr};
}
if (triple.getEnvironment() == llvm::Triple::Android) {
Expand Down

0 comments on commit 93d29ef

Please sign in to comment.