[clang] [clang][CodeGen][UBSan] Fixing shift-exponent generation for _BitInt (PR #80515)

Björn Pettersson via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 3 02:51:42 PST 2024


================
@@ -0,0 +1,36 @@
+// RUN: %clang_cc1 %s -O0 -fsanitize=shift-exponent -emit-llvm -o - | FileCheck %s
----------------
bjope wrote:

I think you for example want to use `-std=c2x -triple=x86_64-unknown-linux` here.
(Not sure exactly if you for example need the triple, but I fear that you would end up with failing build bots otherwise as not all targets support C23 _BitInt literals by default.)

https://github.com/llvm/llvm-project/pull/80515


More information about the cfe-commits mailing list