Skip to content

Commit 661f90a

Browse files
committed
[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. ```
1 parent 446e793 commit 661f90a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/include/llvm/SandboxIR/Context.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class Argument;
2525
class BBIterator;
2626
class Constant;
2727
class Module;
28+
class Region;
2829
class Value;
2930
class Use;
3031

0 commit comments

Comments
 (0)