[llvm] 661f90a - [SandboxIR] Fix warning when building on Windows with clang-cl. NFC.
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 11:44:24 PDT 2025
Author: Alexandre Ganea
Date: 2025-04-08T14:42:31-04:00
New Revision: 661f90ad088fe9fad004ae6690bab061fb9a5f1d
URL: https://github.com/llvm/llvm-project/commit/661f90ad088fe9fad004ae6690bab061fb9a5f1d
DIFF: https://github.com/llvm/llvm-project/commit/661f90ad088fe9fad004ae6690bab061fb9a5f1d.diff
LOG: [SandboxIR] Fix warning when building on Windows with clang-cl. NFC.
This fixes:
```
[2295/3381] Building CXX object lib\Passes\CMakeFiles\LLVMPasses.dir\PassBuilder.cpp.obj
In file included from C:\git\llvm-project\llvm\lib\Passes\PassBuilder.cpp:368:
In file included from C:\git\llvm-project\llvm\include\llvm/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizer.h:16:
C:\git\llvm-project\llvm\include\llvm/SandboxIR/Context.h(73,16): warning: unqualified friend declaration referring to type outside of the nearest enclosing namespace is a Microsoft extension; add a nested name specifier [-Wmicrosoft-unqualified-friend]
73 | friend class Region; // For LLVMCtx.
| ^
| ::llvm::
1 warning generated.
```
Added:
Modified:
llvm/include/llvm/SandboxIR/Context.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/SandboxIR/Context.h b/llvm/include/llvm/SandboxIR/Context.h
index e2b4d0f6baf18..974b3f15968fc 100644
--- a/llvm/include/llvm/SandboxIR/Context.h
+++ b/llvm/include/llvm/SandboxIR/Context.h
@@ -25,6 +25,7 @@ class Argument;
class BBIterator;
class Constant;
class Module;
+class Region;
class Value;
class Use;
More information about the llvm-commits
mailing list