[llvm] [clang] Initial backend C-restrict support (PR #173395)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 23 09:08:15 PST 2025
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 3000 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] lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/Scopes2AliasScopeMetadata.cpp.obj</summary>
```
FAILED: [code=1] lib/Transforms/IPO/CMakeFiles/LLVMipo.dir/Scopes2AliasScopeMetadata.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe /nologo -TP -DGTEST_HAS_RTTI=0 -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_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib\Transforms\IPO -IC:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO -Iinclude -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 -MD /EHs-c- /GR- -UNDEBUG -std:c++17 /showIncludes /Folib\Transforms\IPO\CMakeFiles\LLVMipo.dir\Scopes2AliasScopeMetadata.cpp.obj /Fdlib\Transforms\IPO\CMakeFiles\LLVMipo.dir\LLVMipo.pdb -c -- C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(52,49): error: no member named 'MD_scope' in 'llvm::LLVMContext'
52 | auto *MD = LI->getMetadata(llvm::LLVMContext::MD_scope);
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(70,58): error: no member named 'MD_scope' in 'llvm::LLVMContext'
70 | auto *PrevMD = GEP->getMetadata(llvm::LLVMContext::MD_scope);
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(74,43): error: no member named 'MD_scope' in 'llvm::LLVMContext'
74 | GEP->setMetadata(llvm::LLVMContext::MD_scope, MD);
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(87,49): error: no member named 'MD_scope' in 'llvm::LLVMContext'
87 | auto *MD = I.getMetadata(llvm::LLVMContext::MD_scope);
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(197,69): error: no member named 'MD_scope' in 'llvm::LLVMContext'
197 | AI->getMetadata(llvm::LLVMContext::MD_scope);
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(209,48): error: no member named 'MD_scope' in 'llvm::LLVMContext'
209 | assert((AI->getMetadata(llvm::LLVMContext::MD_scope)) &&
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(212,63): error: no member named 'MD_scope' in 'llvm::LLVMContext'
212 | GenMap[&EntryBB][AI] = AI->getMetadata(llvm::LLVMContext::MD_scope);
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(231,51): error: no member named 'MD_scope' in 'llvm::LLVMContext'
231 | auto *MD = AI->getMetadata(llvm::LLVMContext::MD_scope);
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(247,47): error: no member named 'MD_scope' in 'llvm::LLVMContext'
247 | return AI->getMetadata(llvm::LLVMContext::MD_scope);
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(260,52): error: no member named 'MD_scope' in 'llvm::LLVMContext'
260 | (LI->getMetadata(llvm::LLVMContext::MD_scope) != MDScope);
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(267,21): error: no member named 'MD_scope' in 'llvm::LLVMContext'; did you mean 'MDScope'?
267 | LI->setMetadata(llvm::LLVMContext::MD_scope, MDScope);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| MDScope
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(254,34): note: 'MDScope' declared here
254 | MDNode *MDScope) {
| ^
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(281,56): error: no member named 'MD_scope' in 'llvm::LLVMContext'
281 | if (auto *MD = I->getMetadata(llvm::LLVMContext::MD_scope))
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(290,44): error: no member named 'MD_scope' in 'llvm::LLVMContext'
290 | PHIIt.setMetadata(llvm::LLVMContext::MD_scope, MOP.front());
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(299,49): error: no member named 'MD_scope' in 'llvm::LLVMContext'
299 | auto *MD = AI->getMetadata(llvm::LLVMContext::MD_scope);
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(443,45): error: no member named 'MD_scope' in 'llvm::LLVMContext'
443 | (AI->getMetadata(llvm::LLVMContext::MD_scope) != nullptr);
| ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(267,9): error: no matching member function for call to 'setMetadata'
267 | LI->setMetadata(llvm::LLVMContext::MD_scope, MDScope);
| ~~~~^~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\lib\Transforms\IPO\Scopes2AliasScopeMetadata.cpp(342,16): note: in instantiation of function template specialization 'promoteScope<llvm::ilist_iterator_w_bits<llvm::ilist_detail::node_options<llvm::Instruction, true, false, void, true, llvm::BasicBlock>, false, false>>' requested here
342 | Changed |= promoteScope(BB->begin(), NextSI, AI, GenMap[BB][AI]);
| ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/Instruction.h(460,17): note: candidate function not viable: no known conversion from 'MDNode *' to 'unsigned int' for 1st argument
460 | LLVM_ABI void setMetadata(unsigned KindID, MDNode *Node);
| ^ ~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/Instruction.h(461,17): note: candidate function not viable: no known conversion from 'MDNode *' to 'StringRef' for 1st argument
461 | LLVM_ABI void setMetadata(StringRef Kind, MDNode *Node);
| ^ ~~~~~~~~~~~~~~
16 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/173395
More information about the llvm-commits
mailing list