Skip to content

Commit 59b1d63

Browse files
[llvm][SandBoxIR] Fix Windows+clang compiler warning (#146905)
C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\llvm\include\llvm/SandboxIR/Value.h(172,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] Clang suggests adding ::llvm::, but: * Region is in ::llvm::sandboxir * Region is not defined at this point So forward declare it.
1 parent 28649f2 commit 59b1d63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/include/llvm/SandboxIR/Value.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class IntrinsicInst;
3333
class Operator;
3434
class OverflowingBinaryOperator;
3535
class FPMathOperator;
36+
class Region;
3637

3738
/// Iterator for the `Use` edges of a Value's users.
3839
/// \Returns a `Use` when dereferenced.

0 commit comments

Comments
 (0)