[llvm] d3c9bb0 - [AMDGPU] Fix build failure after #97070 (NFC)

Jie Fu via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 23:12:08 PDT 2024


Author: Jie Fu
Date: 2024-08-08T14:11:16+08:00
New Revision: d3c9bb0cf811424dcb8c848cf06773dbdde19965

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

LOG: [AMDGPU] Fix build failure after #97070 (NFC)

/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h:55:21:
error: use of undeclared identifier 'InterestingMemoryOperand'
    SmallVectorImpl<InterestingMemoryOperand> &Interesting);
                    ^

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
    llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
index 593fca5bc3ed6..9bdea0bba8f1a 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.cpp
@@ -181,7 +181,7 @@ void instrumentAddress(Module &M, IRBuilder<> &IRB, Instruction *OrigIns,
 
 void getInterestingMemoryOperands(
     Module &M, Instruction *I,
-    SmallVectorImpl<InterestingMemoryOperand> &Interesting) {
+    SmallVectorImpl<MemoryRefInfo> &Interesting) {
   const DataLayout &DL = M.getDataLayout();
   if (LoadInst *LI = dyn_cast<LoadInst>(I)) {
     Interesting.emplace_back(I, LI->getPointerOperandIndex(), false,

diff  --git a/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h b/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h
index 64d78c4aeb692..4f1874e74bf91 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAsanInstrumentation.h
@@ -52,7 +52,7 @@ void instrumentAddress(Module &M, IRBuilder<> &IRB, Instruction *OrigIns,
 /// that needs to be instrumented
 void getInterestingMemoryOperands(
     Module &M, Instruction *I,
-    SmallVectorImpl<InterestingMemoryOperand> &Interesting);
+    SmallVectorImpl<MemoryRefInfo> &Interesting);
 
 } // end namespace AMDGPU
 } // end namespace llvm


        


More information about the llvm-commits mailing list