[clang] [Clang] Fix assertion failure (#189260) (PR #189305)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 29 22:01:54 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 3112 tests passed
* 30 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] tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGExpr.cpp.obj</summary>
```
FAILED: [code=1] tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGExpr.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe /nologo -TP -DCLANG_BUILD_STATIC -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_HAS_EXCEPTIONS=0 -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\build\tools\clang\lib\CodeGen -IC:\_work\llvm-project\llvm-project\clang\lib\CodeGen -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4 -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2 -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\CodeGen\CMakeFiles\obj.clangCodeGen.dir\CGExpr.cpp.obj /Fdtools\clang\lib\CodeGen\CMakeFiles\obj.clangCodeGen.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2793,57): error: use of undeclared identifier 'SrcVal'
2793 | if (auto *EltTy = dyn_cast<llvm::FixedVectorType>(SrcVal->getType());
| ^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2795,9): error: use of undeclared identifier 'SrcVal'
2795 | SrcVal = Builder.CreateBitCast(SrcVal, EltTy->getElementType());
| ^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2795,40): error: use of undeclared identifier 'SrcVal'
2795 | SrcVal = Builder.CreateBitCast(SrcVal, EltTy->getElementType());
| ^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2797,7): error: use of undeclared identifier 'Vec'
2797 | Vec = Builder.CreateInsertElement(Vec, SrcVal, Dst.getVectorIdx(),
| ^~~
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2797,41): error: use of undeclared identifier 'Vec'
2797 | Vec = Builder.CreateInsertElement(Vec, SrcVal, Dst.getVectorIdx(),
| ^~~
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2797,46): error: use of undeclared identifier 'SrcVal'
2797 | Vec = Builder.CreateInsertElement(Vec, SrcVal, Dst.getVectorIdx(),
| ^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2799,11): error: use of undeclared identifier 'IRStoreTy'
2799 | if (IRStoreTy) {
| ^~~~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2801,9): error: use of undeclared identifier 'Vec'
2801 | Vec = Builder.CreateBitCast(Vec, IRStoreTy);
| ^~~
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2801,37): error: use of undeclared identifier 'Vec'
2801 | Vec = Builder.CreateBitCast(Vec, IRStoreTy);
| ^~~
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2801,42): error: use of undeclared identifier 'IRStoreTy'
2801 | Vec = Builder.CreateBitCast(Vec, IRStoreTy);
| ^~~~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2804,37): error: use of undeclared identifier 'Vec'
2804 | auto *I = Builder.CreateStore(Vec, Dst.getVectorAddress(),
| ^~~
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2806,37): error: use of undeclared identifier 'Vec'
2806 | addInstToCurrentSourceAtom(I, Vec);
| ^~~
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2928,3): error: expected unqualified-id
2928 | if (PointerAuthQualifier PointerAuth = Dst.getQuals().getPointerAuth()) {
| ^
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2935,3): error: expected unqualified-id
2935 | if (Qualifiers::ObjCLifetime Lifetime = Dst.getQuals().getObjCLifetime()) {
| ^
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2969,3): error: expected unqualified-id
2969 | if (Dst.isObjCWeak() && !Dst.isNonGC()) {
| ^
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(2977,3): error: expected unqualified-id
2977 | if (Dst.isObjCStrong() && !Dst.isNonGC()) {
| ^
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(3000,3): error: expected unqualified-id
3000 | assert(Src.isScalar() && "Can't emit an agg store with this method");
| ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\assert.h(39,34): note: expanded from macro 'assert'
39 | #define assert(expression) ((void)( \
| ^
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(3000,3): error: expected ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\assert.h(39,34): note: expanded from macro 'assert'
39 | #define assert(expression) ((void)( \
| ^
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(3000,3): note: to match this '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\assert.h(39,33): note: expanded from macro 'assert'
39 | #define assert(expression) ((void)( \
| ^
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(3000,3): error: expected ')'
3000 | assert(Src.isScalar() && "Can't emit an agg store with this method");
| ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\assert.h(40,14): note: expanded from macro 'assert'
40 | (!!(expression)) || \
| ^
C:\_work\llvm-project\llvm-project\clang\lib\CodeGen\CGExpr.cpp(3000,3): note: to match this '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\assert.h(40,13): note: expanded from macro 'assert'
40 | (!!(expression)) || \
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
```
</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/189305
More information about the cfe-commits
mailing list