[clang] [clang][ExprConst] Consider integer pointers of value 0 nullptr (PR #150164)
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 23 05:24:19 PDT 2025
================
@@ -27,12 +27,6 @@ template void f<B{nullptr}>();
// CHECK: define weak_odr void @_Z1fIXtl1BLPKi32EEEEvv(
// MSABI: define {{.*}} @"??$f@$2UB@@PEBH0CA at H0A@@@@YAXXZ"
template void f<B{fold((int*)32)}>();
-#ifndef _WIN32
----------------
zygoloid wrote:
We should ensure we still have a test for mangling in the case where the null pointer representation is not zero. I don't know if there are any MS ABI targets where that happens, and I would guess there aren't, but we should retain an Itanium ABI test at least.
https://github.com/llvm/llvm-project/pull/150164
More information about the cfe-commits
mailing list