[llvm] 7594b4b - [AMDGPU] Fix compilation errors.

Ivan Kosarev via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 22 02:30:56 PDT 2025


Author: Ivan Kosarev
Date: 2025-08-22T10:30:43+01:00
New Revision: 7594b4b8d1bca197282d185e6c309cd71fcce380

URL: https://github.com/llvm/llvm-project/commit/7594b4b8d1bca197282d185e6c309cd71fcce380
DIFF: https://github.com/llvm/llvm-project/commit/7594b4b8d1bca197282d185e6c309cd71fcce380.diff

LOG: [AMDGPU] Fix compilation errors.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h
    llvm/lib/Target/AMDGPU/R600MCInstLower.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h b/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h
index 47b718983d17f..68b8d4e25a6cc 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 6d7e834ca3d5d..48b4e7f0d07be 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:


        


More information about the llvm-commits mailing list