[PATCH] D157586: [clang][AVR] Restrict IntMaxType to 16-bit signed integer

Ben Shi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 10 00:56:48 PDT 2023


benshi001 created this revision.
benshi001 added reviewers: jacquesguan, aykevl, Patryk27.
Herald added subscribers: Jim, dylanmckay.
Herald added a project: All.
benshi001 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Fixes bug https://github.com/llvm/llvm-project/issues/64564


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157586

Files:
  clang/lib/Basic/Targets/AVR.h


Index: clang/lib/Basic/Targets/AVR.h
===================================================================
--- clang/lib/Basic/Targets/AVR.h
+++ clang/lib/Basic/Targets/AVR.h
@@ -53,6 +53,7 @@
     Char16Type = UnsignedInt;
     WIntType = SignedInt;
     Int16Type = SignedInt;
+    IntMaxType = SignedInt;
     Char32Type = UnsignedLong;
     SigAtomicType = SignedChar;
     resetDataLayout("e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157586.548904.patch
Type: text/x-patch
Size: 450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230810/9c308af3/attachment.bin>


More information about the cfe-commits mailing list