Skip to content

Commit 766ec7d

Browse files
committed
[SandboxIR] Silence warning with Clang 19.1.0 on Windows
This fixes: ``` [1832/3777] Building CXX object lib\SandboxIR\CMakeFiles\LLVMSandboxIR.dir\SandboxIR.cpp.obj In file included from C:\src\git\llvm-project\llvm\lib\SandboxIR\SandboxIR.cpp:9: C:\src\git\llvm-project\llvm\include\llvm/SandboxIR/SandboxIR.h(4400,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] 4400 | friend class TargetExtType; // For LLVMCtx. | ^ | ::llvm:: 1 warning generated. ```
1 parent 737c414 commit 766ec7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/SandboxIR/SandboxIR.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4397,7 +4397,7 @@ class Context {
43974397
// is complete
43984398
friend class IntegerType; // For LLVMCtx.
43994399
friend class StructType; // For LLVMCtx.
4400-
friend class TargetExtType; // For LLVMCtx.
4400+
friend class ::llvm::TargetExtType; // For LLVMCtx.
44014401
Tracker IRTracker;
44024402

44034403
/// Maps LLVM Value to the corresponding sandboxir::Value. Owns all

0 commit comments

Comments
 (0)