[clang] [Fuchsia] Define wint_t type as unsigned int (PR #95508)
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 13 23:09:53 PDT 2024
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/95508
This matches the type used by Fuchsia libc.
>From 05fdc445f601f04560ca4106760257d7531b29e0 Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Fri, 14 Jun 2024 06:08:16 +0000
Subject: [PATCH] [Fuchsia] Define wint_t type as unsigned int
This matches the type used by Fuchsia libc.
---
clang/lib/Basic/Targets/OSTargets.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/clang/lib/Basic/Targets/OSTargets.h b/clang/lib/Basic/Targets/OSTargets.h
index 4366c1149e405..5f27c3469f861 100644
--- a/clang/lib/Basic/Targets/OSTargets.h
+++ b/clang/lib/Basic/Targets/OSTargets.h
@@ -868,6 +868,7 @@ class LLVM_LIBRARY_VISIBILITY FuchsiaTargetInfo : public OSTargetInfo<Target> {
public:
FuchsiaTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
: OSTargetInfo<Target>(Triple, Opts) {
+ this->WIntType = TargetInfo::UnsignedInt;
this->MCountName = "__mcount";
this->TheCXXABI.set(TargetCXXABI::Fuchsia);
}
More information about the cfe-commits
mailing list