[clang] [libcxxabi] [clang] respect Ty addrspace when making an alloca (PR #181390)

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 13 10:41:58 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 104576 tests passed
* 3097 tests skipped
* 2 tests failed

## Failed Tests
(click on a test name to see its output)

### llvm-libc++abi-shared-cfg-in
<details>
<summary>llvm-libc++abi-shared-cfg-in.llvm-libc++abi-shared-cfg-in/itanium_demangle_matches_llvm.sh.test</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/src/demangle/ItaniumDemangle.h > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.libcxxabi_demangle
# executed command: tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/src/demangle/ItaniumDemangle.h
# note: command had no output on stdout or stderr
# RUN: at line 5
tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/runtimes/../llvm/include/llvm/Demangle/ItaniumDemangle.h > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.llvm_demangle
# executed command: tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/runtimes/../llvm/include/llvm/Demangle/ItaniumDemangle.h
# note: command had no output on stdout or stderr
# RUN: at line 6
diff /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.libcxxabi_demangle /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.llvm_demangle
# executed command: diff /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.libcxxabi_demangle /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.llvm_demangle
# note: command had no output on stdout or stderr
# RUN: at line 8
tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/src/demangle/ItaniumNodes.def > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.libcxxabi_nodes
# executed command: tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/src/demangle/ItaniumNodes.def
# note: command had no output on stdout or stderr
# RUN: at line 9
tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/runtimes/../llvm/include/llvm/Demangle/ItaniumNodes.def > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.llvm_nodes
# executed command: tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/runtimes/../llvm/include/llvm/Demangle/ItaniumNodes.def
# note: command had no output on stdout or stderr
# RUN: at line 10
diff /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.libcxxabi_nodes /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.llvm_nodes
# executed command: diff /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.libcxxabi_nodes /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.llvm_nodes
# note: command had no output on stdout or stderr
# RUN: at line 12
tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/src/demangle/StringViewExtras.h > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.libcxxabi_extras
# executed command: tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/src/demangle/StringViewExtras.h
# note: command had no output on stdout or stderr
# RUN: at line 13
tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/runtimes/../llvm/include/llvm/Demangle/StringViewExtras.h > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.llvm_extras
# executed command: tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/runtimes/../llvm/include/llvm/Demangle/StringViewExtras.h
# note: command had no output on stdout or stderr
# RUN: at line 14
diff /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.libcxxabi_extras /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.llvm_extras
# executed command: diff /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.libcxxabi_extras /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.llvm_extras
# note: command had no output on stdout or stderr
# RUN: at line 16
tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/src/demangle/Utility.h > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.libcxxabi_utility
# executed command: tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/src/demangle/Utility.h
# note: command had no output on stdout or stderr
# RUN: at line 17
tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/runtimes/../llvm/include/llvm/Demangle/Utility.h > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.llvm_utility
# executed command: tail -n +3 /home/gha/actions-runner/_work/llvm-project/llvm-project/runtimes/../llvm/include/llvm/Demangle/Utility.h
# note: command had no output on stdout or stderr
# RUN: at line 18
diff /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.libcxxabi_utility /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.llvm_utility
# executed command: diff /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.libcxxabi_utility /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/itanium_demangle_matches_llvm.sh.test.dir/t.tmp.llvm_utility
# note: command had no output on stdout or stderr
# RUN: at line 20
diff /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/test/DemangleTestCases.inc /home/gha/actions-runner/_work/llvm-project/llvm-project/runtimes/../llvm/include/llvm/Testing/Demangle/DemangleTestCases.inc
# executed command: diff /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/test/DemangleTestCases.inc /home/gha/actions-runner/_work/llvm-project/llvm-project/runtimes/../llvm/include/llvm/Testing/Demangle/DemangleTestCases.inc
# .---command stdout------------
# | *** /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/test/DemangleTestCases.inc
# | --- /home/gha/actions-runner/_work/llvm-project/llvm-project/runtimes/../llvm/include/llvm/Testing/Demangle/DemangleTestCases.inc
# | ***************
# | *** 3125,3131 ****
# |   {"_ZN5clang7CodeGen15CodeGenFunction17EmitCastToVoidPtrEPN4llvm5ValueE", "clang::CodeGen::CodeGenFunction::EmitCastToVoidPtr(llvm::Value*)"},
# |   {"_ZN5clang7CodeGen15CodeGenFunction16CreateTempAllocaEPKN4llvm4TypeERKNS2_5TwineE", "clang::CodeGen::CodeGenFunction::CreateTempAlloca(llvm::Type const*, llvm::Twine const&)"},
# |   {"_ZN5clang7CodeGen15CodeGenFunction14InitTempAllocaEPN4llvm10AllocaInstEPNS2_5ValueE", "clang::CodeGen::CodeGenFunction::InitTempAlloca(llvm::AllocaInst*, llvm::Value*)"},
# | ! {"_ZN5clang7CodeGen15CodeGenFunction12CreateIRTempENS_8QualTypeERKN4llvm5TwineE", "clang::CodeGen::CodeGenFunction::CreateIRTempWithoutCast(clang::QualType, llvm::Twine const&)"},
# |   {"_ZN5clang7CodeGen15CodeGenFunction13CreateMemTempENS_8QualTypeERKN4llvm5TwineE", "clang::CodeGen::CodeGenFunction::CreateMemTemp(clang::QualType, llvm::Twine const&)"},
# |   {"_ZN5clang7CodeGen15CodeGenFunction18EvaluateExprAsBoolEPKNS_4ExprE", "clang::CodeGen::CodeGenFunction::EvaluateExprAsBool(clang::Expr const*)"},
# |   {"_ZN5clang7CodeGen15CodeGenFunction15EmitIgnoredExprEPKNS_4ExprE", "clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*)"},
# | --- 3125,3131 ----
# |   {"_ZN5clang7CodeGen15CodeGenFunction17EmitCastToVoidPtrEPN4llvm5ValueE", "clang::CodeGen::CodeGenFunction::EmitCastToVoidPtr(llvm::Value*)"},
# |   {"_ZN5clang7CodeGen15CodeGenFunction16CreateTempAllocaEPKN4llvm4TypeERKNS2_5TwineE", "clang::CodeGen::CodeGenFunction::CreateTempAlloca(llvm::Type const*, llvm::Twine const&)"},
# |   {"_ZN5clang7CodeGen15CodeGenFunction14InitTempAllocaEPN4llvm10AllocaInstEPNS2_5ValueE", "clang::CodeGen::CodeGenFunction::InitTempAlloca(llvm::AllocaInst*, llvm::Value*)"},
# | ! {"_ZN5clang7CodeGen15CodeGenFunction12CreateIRTempENS_8QualTypeERKN4llvm5TwineE", "clang::CodeGen::CodeGenFunction::CreateIRTemp(clang::QualType, llvm::Twine const&)"},
# |   {"_ZN5clang7CodeGen15CodeGenFunction13CreateMemTempENS_8QualTypeERKN4llvm5TwineE", "clang::CodeGen::CodeGenFunction::CreateMemTemp(clang::QualType, llvm::Twine const&)"},
# |   {"_ZN5clang7CodeGen15CodeGenFunction18EvaluateExprAsBoolEPKNS_4ExprE", "clang::CodeGen::CodeGenFunction::EvaluateExprAsBool(clang::Expr const*)"},
# |   {"_ZN5clang7CodeGen15CodeGenFunction15EmitIgnoredExprEPKNS_4ExprE", "clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*)"},
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>llvm-libc++abi-shared-cfg-in.llvm-libc++abi-shared-cfg-in/test_demangle.pass.cpp</summary>

```
Exit Code: 250

Command Output (stdout):
--
# COMPILED WITH
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/test/test_demangle.pass.cpp  --target=x86_64-unknown-linux-gnu -nostdinc++ -I /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test-suite-install/include -I /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test-suite-install/include/c++/v1 -I /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test-suite-install/include/x86_64-unknown-linux-gnu/c++/v1 -I "/home/gha/actions-runner/_work/llvm-project/llvm-project/libunwind/include" -I /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/../libcxx/test/support -I /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/../libcxx/src -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS -std=c++26 -Werror -Wall -Wctad-maybe-unsupported -Wextra -Wshadow -Wundef -Wunused-template -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-noexcept-type -Wno-atomic-alignment -Wno-reserved-module-identifier -Wdeprecated-copy -Wdeprecated-copy-dtor -Wshift-negative-value -Wno-user-defined-literals -Wno-tautological-compare -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Wno-local-type-template-args -Wno-c++11-extensions -Wno-unknown-pragmas -Wno-pass-failed -Wno-mismatched-new-delete -Wno-redundant-move -Wno-self-move -Wno-nullability-completeness -flax-vector-conversions=none -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -Wuser-defined-warnings  -nostdlib++ -L /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test-suite-install/lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test-suite-install/lib/x86_64-unknown-linux-gnu -lc++ -lc++abi -pthread -latomic -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/test_demangle.pass.cpp.dir/t.tmp.exe
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/test/test_demangle.pass.cpp --target=x86_64-unknown-linux-gnu -nostdinc++ -I /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test-suite-install/include -I /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test-suite-install/include/c++/v1 -I /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test-suite-install/include/x86_64-unknown-linux-gnu/c++/v1 -I /home/gha/actions-runner/_work/llvm-project/llvm-project/libunwind/include -I /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/../libcxx/test/support -I /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/../libcxx/src -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS -std=c++26 -Werror -Wall -Wctad-maybe-unsupported -Wextra -Wshadow -Wundef -Wunused-template -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-noexcept-type -Wno-atomic-alignment -Wno-reserved-module-identifier -Wdeprecated-copy -Wdeprecated-copy-dtor -Wshift-negative-value -Wno-user-defined-literals -Wno-tautological-compare -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Wno-local-type-template-args -Wno-c++11-extensions -Wno-unknown-pragmas -Wno-pass-failed -Wno-mismatched-new-delete -Wno-redundant-move -Wno-self-move -Wno-nullability-completeness -flax-vector-conversions=none -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -Wuser-defined-warnings -nostdlib++ -L /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test-suite-install/lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test-suite-install/lib/x86_64-unknown-linux-gnu -lc++ -lc++abi -pthread -latomic -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/test_demangle.pass.cpp.dir/t.tmp.exe
# note: command had no output on stdout or stderr
# EXECUTED AS
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxx/utils/run.py --execdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/test_demangle.pass.cpp.dir --  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/test_demangle.pass.cpp.dir/t.tmp.exe
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxx/utils/run.py --execdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/test_demangle.pass.cpp.dir -- /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxxabi/test/Output/test_demangle.pass.cpp.dir/t.tmp.exe
# .---command stderr------------
# | ERROR demangling _ZN5clang7CodeGen15CodeGenFunction12CreateIRTempENS_8QualTypeERKN4llvm5TwineE
# | expected: clang::CodeGen::CodeGenFunction::CreateIRTempWithoutCast(clang::QualType, llvm::Twine const&)
# | got: 0,   clang::CodeGen::CodeGenFunction::CreateIRTemp(clang::QualType, llvm::Twine const&)
# | t.tmp.exe: /home/gha/actions-runner/_work/llvm-project/llvm-project/libcxxabi/test/test_demangle.pass.cpp:163: void test(): Assertion `!failed && "demangle failed"' failed.
# `-----------------------------
# error: command failed with exit status: 250

--

```
</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/181390


More information about the cfe-commits mailing list