[mlir][cmake] Comment out redundant static assert regarding VarInfo struct
authorAmir Bishara <amir.bishara@mobileye.com>
Tue, 18 Jul 2023 07:13:20 +0000 (00:13 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 18 Jul 2023 07:14:24 +0000 (00:14 -0700)
Reviewed By: aartbik

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

mlir/lib/Dialect/SparseTensor/IR/Detail/Var.h

index f381d46..e5d5a97 100644 (file)
@@ -386,7 +386,8 @@ public:
 };
 // We don't actually require this, since `VarInfo` is a proper struct
 // rather than a newtype.  But it passes, so for now we'll keep it around.
-static_assert(IsZeroCostAbstraction<VarInfo>);
+// TODO: Uncomment the static assert, it fails the build with gcc7 right now.
+// static_assert(IsZeroCostAbstraction<VarInfo>);
 
 //===----------------------------------------------------------------------===//
 enum class CreationPolicy { MustNot, May, Must };