projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2515cb8
)
Revert "[mlir][test] Fix IR/AttributeTest.cpp compilation on Solaris"
author
Mehdi Amini
<joker.eph@gmail.com>
Thu, 4 Aug 2022 18:47:28 +0000
(18:47 +0000)
committer
Mehdi Amini
<joker.eph@gmail.com>
Thu, 4 Aug 2022 18:48:22 +0000
(18:48 +0000)
This reverts commit
07aaa35f74d845a20d48e644671dce150ebf7748
.
This breaks the Windows bot, and while the fix addressed the
`char`/`int8_t` case, it does not make sense for other cases like
`float`.
mlir/unittests/IR/AttributeTest.cpp
patch
|
blob
|
history
diff --git
a/mlir/unittests/IR/AttributeTest.cpp
b/mlir/unittests/IR/AttributeTest.cpp
index
098ce38
..
8250afd
100644
(file)
--- a/
mlir/unittests/IR/AttributeTest.cpp
+++ b/
mlir/unittests/IR/AttributeTest.cpp
@@
-219,8
+219,8
@@
template <typename AttrT, typename T>
static void checkNativeAccess(MLIRContext *ctx, ArrayRef<T> data,
Type elementType) {
auto type = RankedTensorType::get(data.size(), elementType);
- auto attr =
AttrT::get(type, "resource",
-
UnmanagedAsmResourceBlob::allocate(data, alignof(T)
));
+ auto attr =
+
AttrT::get(type, "resource", UnmanagedAsmResourceBlob::allocate(data
));
// Check that we can access and iterate the data properly.
Optional<ArrayRef<T>> attrData = attr.tryGetAsArrayRef();