[PATCH] D78600: DenseStringElementsAttr added to default attribute types
Rob Suderman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 22 12:30:57 PDT 2020
rsuderman updated this revision to Diff 259358.
rsuderman retitled this revision from " DenseStringElementsAttr added to default attribute types" to "DenseStringElementsAttr added to default attribute types".
rsuderman edited the summary of this revision.
rsuderman added a comment.
Updated for rriddle@ comments
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78600/new/
https://reviews.llvm.org/D78600
Files:
mlir/lib/IR/AttributeDetail.h
Index: mlir/lib/IR/AttributeDetail.h
===================================================================
--- mlir/lib/IR/AttributeDetail.h
+++ mlir/lib/IR/AttributeDetail.h
@@ -647,8 +647,8 @@
stringData += data[i].size();
}
- copy = ArrayRef<StringRef>(reinterpret_cast<StringRef *>(rawData),
- numEntries);
+ copy =
+ ArrayRef<StringRef>(reinterpret_cast<StringRef *>(rawData), numEntries);
return new (allocator.allocate<DenseStringElementsAttributeStorage>())
DenseStringElementsAttributeStorage(key.type, copy, key.isSplat);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78600.259358.patch
Type: text/x-patch
Size: 603 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200422/9b8a13de/attachment.bin>
More information about the llvm-commits
mailing list