[PATCH] D149436: [clang] Do not attempt to zero-extend _BitInt(1) when not required

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 28 13:17:57 PDT 2023


shafik accepted this revision.
shafik added a comment.

LGTM



================
Comment at: clang/test/CodeGen/ext-int.c:8
+unsigned _BitInt(1) GlobSize1 = 0;
+// CHECK: @GlobSize1 = {{.*}}global i1 false
+
----------------
Interesting, it looks like `true` and `false` are valid for `i1` all the time.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149436/new/

https://reviews.llvm.org/D149436



More information about the cfe-commits mailing list