Fixed a typo in the comment for allocateBuffer()
authorGeorge <gemiti@uahoo.com>
Mon, 18 May 2020 18:40:32 +0000 (14:40 -0400)
committerLei Zhang <antiagainst@google.com>
Mon, 18 May 2020 18:41:57 +0000 (14:41 -0400)
Differential Revision: https://reviews.llvm.org/D80087

mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp

index 8218976..cbe6da3 100644 (file)
@@ -1675,7 +1675,7 @@ struct AllocLikeOpLowering : public ConvertOpToLLVMPattern<AllocLikeOp> {
 
   /// Allocates the underlying buffer using the right call. `allocatedBytePtr`
   /// is set to null for stack allocations. `accessAlignment` is set if
-  /// alignment is neeeded post allocation (for eg. in conjunction with malloc).
+  /// alignment is needed post allocation (for eg. in conjunction with malloc).
   Value allocateBuffer(Location loc, Value cumulativeSize, Operation *op,
                        MemRefType memRefType, Value one, Value &accessAlignment,
                        Value &allocatedBytePtr,