[clang] [llvm] [PromoteMemToReg] Insert store undef when removing lifetime markers (PR #191909)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 13 23:15:02 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 133438 tests passed
* 3088 tests skipped

All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.

<details>
<summary>[code=1] compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.x86_64.dir/asan_interceptors_memintrinsics.cpp.obj</summary>

```
FAILED: [code=1] compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.x86_64.dir/asan_interceptors_memintrinsics.cpp.obj
C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe --target=x86_64-pc-windows-msvc  /nologo -TP -DASAN_DYNAMIC=1 -DINTERCEPTION_DYNAMIC_CRT -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\.. /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new -wd4146 -wd4244 -wd4267 -wd4456 -wd4457 -wd4458 -wd4459 -wd4624 -wd4100 -wd4127 -wd4505 -wd4702 -wd4245 -wd4310 -wd4701 -wd4703 -wd4389 -wd4805 -wd4577 -wd4319 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw -Xclang -fno-pch-timestamp /W4 -Wno-unused-parameter /O2 /Ob2  -std:c++17 -MD -fno-builtin -fno-sanitize=safe-stack -fno-lto /Oy- /GS- /Zc:threadSafeInit- -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta /Z7 -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 -ftrivial-auto-var-init=pattern /hotpatch /Zl /GR- -Wno-format /showIncludes /Focompiler-rt\lib\asan\CMakeFiles\RTAsan_dynamic.x86_64.dir\asan_interceptors_memintrinsics.cpp.obj /Fdcompiler-rt\lib\asan\CMakeFiles\RTAsan_dynamic.x86_64.dir\ -c -- C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_interceptors_memintrinsics.cpp
Assertion failed: ValueType == LI->getType() && "All loads where checked to have used the same type", file C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Utils\PromoteMemoryToRegister.cpp, line 262
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang-cl.exe --target=x86_64-pc-windows-msvc /nologo -TP -DASAN_DYNAMIC=1 -DINTERCEPTION_DYNAMIC_CRT -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\\_work\\llvm-project\\llvm-project\\compiler-rt\\lib\\asan\\.. /DWIN32 /D_WINDOWS /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new -wd4146 -wd4244 -wd4267 -wd4456 -wd4457 -wd4458 -wd4459 -wd4624 -wd4100 -wd4127 -wd4505 -wd4702 -wd4245 -wd4310 -wd4701 -wd4703 -wd4389 -wd4805 -wd4577 -wd4319 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw -Xclang -fno-pch-timestamp /W4 -Wno-unused-parameter /O2 /Ob2 -std:c++17 -MD -fno-builtin -fno-sanitize=safe-stack -fno-lto /Oy- /GS- /Zc:threadSafeInit- -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta /Z7 -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 -ftrivial-auto-var-init=pattern /hotpatch /Zl /GR- -Wno-format /showIncludes /Focompiler-rt\\lib\\asan\\CMakeFiles\\RTAsan_dynamic.x86_64.dir\\asan_interceptors_memintrinsics.cpp.obj /Fdcompiler-rt\\lib\\asan\\CMakeFiles\\RTAsan_dynamic.x86_64.dir\\ -c -- C:\\_work\\llvm-project\\llvm-project\\compiler-rt\\lib\\asan\\asan_interceptors_memintrinsics.cpp
1.	<eof> parser at end of file
2.	Optimizer
3.	Running pass "function<eager-inv>(mem2reg,instcombine<max-iterations=1;no-verify-fixpoint>,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-arithmetic;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>)" on module "C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_interceptors_memintrinsics.cpp"
4.	Running pass "mem2reg" on function "__asan_wrap_memset"
Exception Code: 0xC000001D
#0 0x00007ff7c8919966 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x809966)
#1 0x00007ff93640bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
#2 0x00007ff93640cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
#3 0x00007ff93640e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
#4 0x00007ff93640e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
#5 0x00007ff7ca8c8d05 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x27b8d05)
#6 0x00007ff7ca8c805c (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x27b805c)
#7 0x00007ff7c89aba7f (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x89ba7f)
#8 0x00007ff7c89ab745 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x89b745)
#9 0x00007ff7c93d32ad (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x12c32ad)
#10 0x00007ff7c93d5926 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x12c5926)
#11 0x00007ff7c93d223d (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x12c223d)
#12 0x00007ff7caa05e86 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x28f5e86)
#13 0x00007ff7ca9fc469 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x28ec469)
#14 0x00007ff7cafd4cb1 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2ec4cb1)
#15 0x00007ff7cdd8c287 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x5c7c287)
#16 0x00007ff7caf27ebf (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2e17ebf)
#17 0x00007ff7c8a5a294 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x94a294)
#18 0x00007ff7c8b0e1cc (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x9fe1cc)
#19 0x00007ff7c81188a1 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x88a1)
#20 0x00007ff7c81141a4 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x41a4)
#21 0x00007ff7c8116ecb (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x6ecb)
#22 0x00007ff7cacf4e1d (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2be4e1d)
#23 0x00007ff7c8914d09 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x804d09)
#24 0x00007ff7cacf4456 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2be4456)
#25 0x00007ff7c8a40469 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x930469)
#26 0x00007ff7c8a4071d (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x93071d)
#27 0x00007ff7c8a1e6dc (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x90e6dc)
#28 0x00007ff7c8113540 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x3540)
#29 0x00007ff7c8127c5c (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x17c5c)
#30 0x00007ff7cf73ad70 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x762ad70)
#31 0x00007ff93c0b4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
#32 0x00007ff94647edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
clang-cl: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 23.0.0git (https://github.com/llvm/llvm-project 74ff8ad875733101d104b4a017cf97d121877042)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\_work\llvm-project\llvm-project\build\bin
Build config: +assertions
clang-cl: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-cl: note: diagnostic msg: C:\Users\ContainerAdministrator\AppData\Local\Temp\asan_interceptors_memintrinsics-e4cf53.cpp
clang-cl: note: diagnostic msg: C:\Users\ContainerAdministrator\AppData\Local\Temp\asan_interceptors_memintrinsics-e4cf53.sh
clang-cl: note: diagnostic msg:

********************
```
</details>
<details>
<summary>[code=1] compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.x86_64.dir/asan_interceptors.cpp.obj</summary>

```
FAILED: [code=1] compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.x86_64.dir/asan_interceptors.cpp.obj
C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe --target=x86_64-pc-windows-msvc  /nologo -TP -DASAN_DYNAMIC=1 -DINTERCEPTION_DYNAMIC_CRT -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\.. /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new -wd4146 -wd4244 -wd4267 -wd4456 -wd4457 -wd4458 -wd4459 -wd4624 -wd4100 -wd4127 -wd4505 -wd4702 -wd4245 -wd4310 -wd4701 -wd4703 -wd4389 -wd4805 -wd4577 -wd4319 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw -Xclang -fno-pch-timestamp /W4 -Wno-unused-parameter /O2 /Ob2  -std:c++17 -MD -fno-builtin -fno-sanitize=safe-stack -fno-lto /Oy- /GS- /Zc:threadSafeInit- -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta /Z7 -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 -ftrivial-auto-var-init=pattern /hotpatch /Zl /GR- -Wno-format /showIncludes /Focompiler-rt\lib\asan\CMakeFiles\RTAsan_dynamic.x86_64.dir\asan_interceptors.cpp.obj /Fdcompiler-rt\lib\asan\CMakeFiles\RTAsan_dynamic.x86_64.dir\ -c -- C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_interceptors.cpp
Assertion failed: ValueType == LI->getType() && "All loads where checked to have used the same type", file C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Utils\PromoteMemoryToRegister.cpp, line 262
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang-cl.exe --target=x86_64-pc-windows-msvc /nologo -TP -DASAN_DYNAMIC=1 -DINTERCEPTION_DYNAMIC_CRT -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\\_work\\llvm-project\\llvm-project\\compiler-rt\\lib\\asan\\.. /DWIN32 /D_WINDOWS /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new -wd4146 -wd4244 -wd4267 -wd4456 -wd4457 -wd4458 -wd4459 -wd4624 -wd4100 -wd4127 -wd4505 -wd4702 -wd4245 -wd4310 -wd4701 -wd4703 -wd4389 -wd4805 -wd4577 -wd4319 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw -Xclang -fno-pch-timestamp /W4 -Wno-unused-parameter /O2 /Ob2 -std:c++17 -MD -fno-builtin -fno-sanitize=safe-stack -fno-lto /Oy- /GS- /Zc:threadSafeInit- -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta /Z7 -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 -ftrivial-auto-var-init=pattern /hotpatch /Zl /GR- -Wno-format /showIncludes /Focompiler-rt\\lib\\asan\\CMakeFiles\\RTAsan_dynamic.x86_64.dir\\asan_interceptors.cpp.obj /Fdcompiler-rt\\lib\\asan\\CMakeFiles\\RTAsan_dynamic.x86_64.dir\\ -c -- C:\\_work\\llvm-project\\llvm-project\\compiler-rt\\lib\\asan\\asan_interceptors.cpp
1.	<eof> parser at end of file
2.	Optimizer
3.	Running pass "function<eager-inv>(mem2reg,instcombine<max-iterations=1;no-verify-fixpoint>,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-arithmetic;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>)" on module "C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_interceptors.cpp"
4.	Running pass "mem2reg" on function "__asan_wrap_strlen"
Exception Code: 0xC000001D
#0 0x00007ff7c8919966 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x809966)
#1 0x00007ff93640bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
#2 0x00007ff93640cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
#3 0x00007ff93640e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
#4 0x00007ff93640e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
#5 0x00007ff7ca8c8d05 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x27b8d05)
#6 0x00007ff7ca8c805c (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x27b805c)
#7 0x00007ff7c89aba7f (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x89ba7f)
#8 0x00007ff7c89ab745 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x89b745)
#9 0x00007ff7c93d32ad (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x12c32ad)
#10 0x00007ff7c93d5926 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x12c5926)
#11 0x00007ff7c93d223d (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x12c223d)
#12 0x00007ff7caa05e86 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x28f5e86)
#13 0x00007ff7ca9fc469 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x28ec469)
#14 0x00007ff7cafd4cb1 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2ec4cb1)
#15 0x00007ff7cdd8c287 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x5c7c287)
#16 0x00007ff7caf27ebf (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2e17ebf)
#17 0x00007ff7c8a5a294 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x94a294)
#18 0x00007ff7c8b0e1cc (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x9fe1cc)
#19 0x00007ff7c81188a1 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x88a1)
#20 0x00007ff7c81141a4 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x41a4)
#21 0x00007ff7c8116ecb (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x6ecb)
#22 0x00007ff7cacf4e1d (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2be4e1d)
#23 0x00007ff7c8914d09 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x804d09)
#24 0x00007ff7cacf4456 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2be4456)
#25 0x00007ff7c8a40469 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x930469)
#26 0x00007ff7c8a4071d (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x93071d)
#27 0x00007ff7c8a1e6dc (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x90e6dc)
#28 0x00007ff7c8113540 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x3540)
#29 0x00007ff7c8127c5c (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x17c5c)
#30 0x00007ff7cf73ad70 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x762ad70)
#31 0x00007ff93c0b4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
#32 0x00007ff94647edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
clang-cl: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 23.0.0git (https://github.com/llvm/llvm-project 74ff8ad875733101d104b4a017cf97d121877042)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\_work\llvm-project\llvm-project\build\bin
Build config: +assertions
clang-cl: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-cl: note: diagnostic msg: C:\Users\ContainerAdministrator\AppData\Local\Temp\asan_interceptors-9d1af4.cpp
clang-cl: note: diagnostic msg: C:\Users\ContainerAdministrator\AppData\Local\Temp\asan_interceptors-9d1af4.sh
clang-cl: note: diagnostic msg:

********************
```
</details>
<details>
<summary>[code=1] compiler-rt/lib/asan/CMakeFiles/RTAsan.x86_64.dir/asan_interceptors_memintrinsics.cpp.obj</summary>

```
FAILED: [code=1] compiler-rt/lib/asan/CMakeFiles/RTAsan.x86_64.dir/asan_interceptors_memintrinsics.cpp.obj
C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe --target=x86_64-pc-windows-msvc  /nologo -TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\.. /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new -wd4146 -wd4244 -wd4267 -wd4456 -wd4457 -wd4458 -wd4459 -wd4624 -wd4100 -wd4127 -wd4505 -wd4702 -wd4245 -wd4310 -wd4701 -wd4703 -wd4389 -wd4805 -wd4577 -wd4319 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw -Xclang -fno-pch-timestamp /W4 -Wno-unused-parameter /O2 /Ob2  -std:c++17 -MD -fno-builtin -fno-sanitize=safe-stack -fno-lto /Oy- /GS- /Zc:threadSafeInit- -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta /Z7 -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 -ftrivial-auto-var-init=pattern /hotpatch /Zl /GR- -Wno-format /showIncludes /Focompiler-rt\lib\asan\CMakeFiles\RTAsan.x86_64.dir\asan_interceptors_memintrinsics.cpp.obj /Fdcompiler-rt\lib\asan\CMakeFiles\RTAsan.x86_64.dir\ -c -- C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_interceptors_memintrinsics.cpp
Assertion failed: ValueType == LI->getType() && "All loads where checked to have used the same type", file C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Utils\PromoteMemoryToRegister.cpp, line 262
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang-cl.exe --target=x86_64-pc-windows-msvc /nologo -TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\\_work\\llvm-project\\llvm-project\\compiler-rt\\lib\\asan\\.. /DWIN32 /D_WINDOWS /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new -wd4146 -wd4244 -wd4267 -wd4456 -wd4457 -wd4458 -wd4459 -wd4624 -wd4100 -wd4127 -wd4505 -wd4702 -wd4245 -wd4310 -wd4701 -wd4703 -wd4389 -wd4805 -wd4577 -wd4319 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw -Xclang -fno-pch-timestamp /W4 -Wno-unused-parameter /O2 /Ob2 -std:c++17 -MD -fno-builtin -fno-sanitize=safe-stack -fno-lto /Oy- /GS- /Zc:threadSafeInit- -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta /Z7 -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 -ftrivial-auto-var-init=pattern /hotpatch /Zl /GR- -Wno-format /showIncludes /Focompiler-rt\\lib\\asan\\CMakeFiles\\RTAsan.x86_64.dir\\asan_interceptors_memintrinsics.cpp.obj /Fdcompiler-rt\\lib\\asan\\CMakeFiles\\RTAsan.x86_64.dir\\ -c -- C:\\_work\\llvm-project\\llvm-project\\compiler-rt\\lib\\asan\\asan_interceptors_memintrinsics.cpp
1.	<eof> parser at end of file
2.	Optimizer
3.	Running pass "function<eager-inv>(mem2reg,instcombine<max-iterations=1;no-verify-fixpoint>,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-arithmetic;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>)" on module "C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_interceptors_memintrinsics.cpp"
4.	Running pass "mem2reg" on function "__asan_wrap_memset"
Exception Code: 0xC000001D
#0 0x00007ff7c8919966 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x809966)
#1 0x00007ff93640bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
#2 0x00007ff93640cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
#3 0x00007ff93640e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
#4 0x00007ff93640e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
#5 0x00007ff7ca8c8d05 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x27b8d05)
#6 0x00007ff7ca8c805c (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x27b805c)
#7 0x00007ff7c89aba7f (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x89ba7f)
#8 0x00007ff7c89ab745 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x89b745)
#9 0x00007ff7c93d32ad (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x12c32ad)
#10 0x00007ff7c93d5926 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x12c5926)
#11 0x00007ff7c93d223d (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x12c223d)
#12 0x00007ff7caa05e86 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x28f5e86)
#13 0x00007ff7ca9fc469 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x28ec469)
#14 0x00007ff7cafd4cb1 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2ec4cb1)
#15 0x00007ff7cdd8c287 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x5c7c287)
#16 0x00007ff7caf27ebf (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2e17ebf)
#17 0x00007ff7c8a5a294 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x94a294)
#18 0x00007ff7c8b0e1cc (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x9fe1cc)
#19 0x00007ff7c81188a1 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x88a1)
#20 0x00007ff7c81141a4 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x41a4)
#21 0x00007ff7c8116ecb (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x6ecb)
#22 0x00007ff7cacf4e1d (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2be4e1d)
#23 0x00007ff7c8914d09 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x804d09)
#24 0x00007ff7cacf4456 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2be4456)
#25 0x00007ff7c8a40469 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x930469)
#26 0x00007ff7c8a4071d (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x93071d)
#27 0x00007ff7c8a1e6dc (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x90e6dc)
#28 0x00007ff7c8113540 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x3540)
#29 0x00007ff7c8127c5c (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x17c5c)
#30 0x00007ff7cf73ad70 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x762ad70)
#31 0x00007ff93c0b4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
#32 0x00007ff94647edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
clang-cl: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 23.0.0git (https://github.com/llvm/llvm-project 74ff8ad875733101d104b4a017cf97d121877042)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\_work\llvm-project\llvm-project\build\bin
Build config: +assertions
clang-cl: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-cl: note: diagnostic msg: C:\Users\ContainerAdministrator\AppData\Local\Temp\asan_interceptors_memintrinsics-157578.cpp
clang-cl: note: diagnostic msg: C:\Users\ContainerAdministrator\AppData\Local\Temp\asan_interceptors_memintrinsics-157578.sh
clang-cl: note: diagnostic msg:

********************
```
</details>
<details>
<summary>[code=1] compiler-rt/lib/asan/CMakeFiles/RTAsan.x86_64.dir/asan_interceptors.cpp.obj</summary>

```
FAILED: [code=1] compiler-rt/lib/asan/CMakeFiles/RTAsan.x86_64.dir/asan_interceptors.cpp.obj
C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe --target=x86_64-pc-windows-msvc  /nologo -TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\.. /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new -wd4146 -wd4244 -wd4267 -wd4456 -wd4457 -wd4458 -wd4459 -wd4624 -wd4100 -wd4127 -wd4505 -wd4702 -wd4245 -wd4310 -wd4701 -wd4703 -wd4389 -wd4805 -wd4577 -wd4319 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw -Xclang -fno-pch-timestamp /W4 -Wno-unused-parameter /O2 /Ob2  -std:c++17 -MD -fno-builtin -fno-sanitize=safe-stack -fno-lto /Oy- /GS- /Zc:threadSafeInit- -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta /Z7 -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 -ftrivial-auto-var-init=pattern /hotpatch /Zl /GR- -Wno-format /showIncludes /Focompiler-rt\lib\asan\CMakeFiles\RTAsan.x86_64.dir\asan_interceptors.cpp.obj /Fdcompiler-rt\lib\asan\CMakeFiles\RTAsan.x86_64.dir\ -c -- C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_interceptors.cpp
Assertion failed: ValueType == LI->getType() && "All loads where checked to have used the same type", file C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\Utils\PromoteMemoryToRegister.cpp, line 262
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang-cl.exe --target=x86_64-pc-windows-msvc /nologo -TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\\_work\\llvm-project\\llvm-project\\compiler-rt\\lib\\asan\\.. /DWIN32 /D_WINDOWS /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new -wd4146 -wd4244 -wd4267 -wd4456 -wd4457 -wd4458 -wd4459 -wd4624 -wd4100 -wd4127 -wd4505 -wd4702 -wd4245 -wd4310 -wd4701 -wd4703 -wd4389 -wd4805 -wd4577 -wd4319 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw -Xclang -fno-pch-timestamp /W4 -Wno-unused-parameter /O2 /Ob2 -std:c++17 -MD -fno-builtin -fno-sanitize=safe-stack -fno-lto /Oy- /GS- /Zc:threadSafeInit- -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta /Z7 -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 -ftrivial-auto-var-init=pattern /hotpatch /Zl /GR- -Wno-format /showIncludes /Focompiler-rt\\lib\\asan\\CMakeFiles\\RTAsan.x86_64.dir\\asan_interceptors.cpp.obj /Fdcompiler-rt\\lib\\asan\\CMakeFiles\\RTAsan.x86_64.dir\\ -c -- C:\\_work\\llvm-project\\llvm-project\\compiler-rt\\lib\\asan\\asan_interceptors.cpp
1.	<eof> parser at end of file
2.	Optimizer
3.	Running pass "function<eager-inv>(mem2reg,instcombine<max-iterations=1;no-verify-fixpoint>,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-arithmetic;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>)" on module "C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_interceptors.cpp"
4.	Running pass "mem2reg" on function "__asan_wrap_strlen"
Exception Code: 0xC000001D
#0 0x00007ff7c8919966 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x809966)
#1 0x00007ff93640bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
#2 0x00007ff93640cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
#3 0x00007ff93640e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
#4 0x00007ff93640e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
#5 0x00007ff7ca8c8d05 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x27b8d05)
#6 0x00007ff7ca8c805c (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x27b805c)
#7 0x00007ff7c89aba7f (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x89ba7f)
#8 0x00007ff7c89ab745 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x89b745)
#9 0x00007ff7c93d32ad (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x12c32ad)
#10 0x00007ff7c93d5926 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x12c5926)
#11 0x00007ff7c93d223d (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x12c223d)
#12 0x00007ff7caa05e86 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x28f5e86)
#13 0x00007ff7ca9fc469 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x28ec469)
#14 0x00007ff7cafd4cb1 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2ec4cb1)
#15 0x00007ff7cdd8c287 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x5c7c287)
#16 0x00007ff7caf27ebf (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2e17ebf)
#17 0x00007ff7c8a5a294 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x94a294)
#18 0x00007ff7c8b0e1cc (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x9fe1cc)
#19 0x00007ff7c81188a1 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x88a1)
#20 0x00007ff7c81141a4 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x41a4)
#21 0x00007ff7c8116ecb (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x6ecb)
#22 0x00007ff7cacf4e1d (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2be4e1d)
#23 0x00007ff7c8914d09 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x804d09)
#24 0x00007ff7cacf4456 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x2be4456)
#25 0x00007ff7c8a40469 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x930469)
#26 0x00007ff7c8a4071d (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x93071d)
#27 0x00007ff7c8a1e6dc (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x90e6dc)
#28 0x00007ff7c8113540 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x3540)
#29 0x00007ff7c8127c5c (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x17c5c)
#30 0x00007ff7cf73ad70 (C:\_work\llvm-project\llvm-project\build\bin\clang-cl.exe+0x762ad70)
#31 0x00007ff93c0b4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
#32 0x00007ff94647edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
clang-cl: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 23.0.0git (https://github.com/llvm/llvm-project 74ff8ad875733101d104b4a017cf97d121877042)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\_work\llvm-project\llvm-project\build\bin
Build config: +assertions
clang-cl: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-cl: note: diagnostic msg: C:\Users\ContainerAdministrator\AppData\Local\Temp\asan_interceptors-f7af04.cpp
clang-cl: note: diagnostic msg: C:\Users\ContainerAdministrator\AppData\Local\Temp\asan_interceptors-f7af04.sh
clang-cl: note: diagnostic msg:

********************
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list