Skip to content

Commit 2788d46

Browse files
timschumilinusg
authored andcommitted
Toolchain: Make wint_t unsigned for Clang
1 parent 5d0869d commit 2788d46

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Toolchain/Patches/llvm.patch

+4-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ diff --git a/clang/lib/Basic/Targets/OSTargets.h b/clang/lib/Basic/Targets/OSTar
3333
index 3fe39ed64..51e7a6cca 100644
3434
--- a/clang/lib/Basic/Targets/OSTargets.h
3535
+++ b/clang/lib/Basic/Targets/OSTargets.h
36-
@@ -966,6 +966,22 @@ public:
36+
@@ -966,6 +966,24 @@ public:
3737
}
3838
};
3939

@@ -50,7 +50,9 @@ index 3fe39ed64..51e7a6cca 100644
5050
+
5151
+public:
5252
+ SerenityTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
53-
+ : OSTargetInfo<Target>(Triple, Opts) {}
53+
+ : OSTargetInfo<Target>(Triple, Opts) {
54+
+ this->WIntType = TargetInfo::UnsignedInt;
55+
+ }
5456
+};
5557
+
5658
} // namespace targets

0 commit comments

Comments
 (0)