From 7594b4b8d1bca197282d185e6c309cd71fcce380 Mon Sep 17 00:00:00 2001 From: Ivan Kosarev Date: Fri, 22 Aug 2025 10:26:26 +0100 Subject: [PATCH] [AMDGPU] Fix compilation errors. --- llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h | 2 +- llvm/lib/Target/AMDGPU/R600MCInstLower.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h b/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h index 47b718983d17..68b8d4e25a6c 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h @@ -22,7 +22,6 @@ namespace llvm { class AsmPrinter; class MCContext; -} // namespace llvm class AMDGPUMCInstLower { MCContext &Ctx; @@ -66,4 +65,5 @@ static inline const MCExpr *lowerAddrSpaceCast(const TargetMachine &TM, return nullptr; } } // namespace +} // namespace llvm #endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUMCINSTLOWER_H diff --git a/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp b/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp index 6d7e834ca3d5..48b4e7f0d07b 100644 --- a/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp +++ b/llvm/lib/Target/AMDGPU/R600MCInstLower.cpp @@ -20,6 +20,8 @@ #include "llvm/MC/MCContext.h" #include "llvm/MC/MCExpr.h" +using namespace llvm; + namespace { class R600MCInstLower : public AMDGPUMCInstLower { public: