Revert "[mlir][test] Fix IR/AttributeTest.cpp compilation on Solaris"
authorMehdi Amini <joker.eph@gmail.com>
Thu, 4 Aug 2022 18:47:28 +0000 (18:47 +0000)
committerMehdi 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

index 098ce38..8250afd 100644 (file)
@@ -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();