[Mlir-commits] [mlir] 8979a9c - [mlir] Fix adding wrong operand value in `promoteMemRefDescriptors`.

Alexander Belyaev llvmlistbot at llvm.org
Tue Aug 4 04:40:16 PDT 2020


Author: Alexander Belyaev
Date: 2020-08-04T13:39:56+02:00
New Revision: 8979a9cdf226066196f1710903d13492e6929563

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

LOG: [mlir] Fix adding wrong operand value in `promoteMemRefDescriptors`.

The bug was not noticed because we didn't have a lot of custom type conversions
directly to LLVM dialect.

Differential Revision: https://reviews.llvm.org/D85192

Added: 
    

Modified: 
    mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
index 42c4d49b8941..d0b49bb18195 100644
--- a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
+++ b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
@@ -3352,7 +3352,7 @@ LLVMTypeConverter::promoteMemRefDescriptors(Location loc, ValueRange opOperands,
       continue;
     }
 
-    promotedOperands.push_back(operand);
+    promotedOperands.push_back(llvmOperand);
   }
   return promotedOperands;
 }


        


More information about the Mlir-commits mailing list