[Mlir-commits] [mlir] 6901607 - Fix build with some GCC version: `global qualification of class name is invalid before '{' token`

Mehdi Amini llvmlistbot at llvm.org
Tue Jun 28 09:48:21 PDT 2022


Author: Mehdi Amini
Date: 2022-06-28T16:48:08Z
New Revision: 6901607822ccb2bcd0f373adfa9e91c3f7da7929

URL: https://github.com/llvm/llvm-project/commit/6901607822ccb2bcd0f373adfa9e91c3f7da7929
DIFF: https://github.com/llvm/llvm-project/commit/6901607822ccb2bcd0f373adfa9e91c3f7da7929.diff

LOG: Fix build with some GCC version: `global qualification of class name is invalid before '{' token`

Added: 
    

Modified: 
    mlir/lib/IR/BuiltinAttributes.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/IR/BuiltinAttributes.cpp b/mlir/lib/IR/BuiltinAttributes.cpp
index bf72d4639754..35926522e080 100644
--- a/mlir/lib/IR/BuiltinAttributes.cpp
+++ b/mlir/lib/IR/BuiltinAttributes.cpp
@@ -671,7 +671,7 @@ DenseElementsAttr::ComplexIntElementIterator::operator*() const {
 
 /// Custom storage to ensure proper memory alignment for the allocation of
 /// DenseArray of any element type.
-struct ::mlir::detail::DenseArrayBaseAttrStorage : public AttributeStorage {
+struct mlir::detail::DenseArrayBaseAttrStorage : public AttributeStorage {
   using KeyTy = std::tuple<ShapedType, DenseArrayBaseAttr::EltType,
                            ::llvm::ArrayRef<char>>;
   DenseArrayBaseAttrStorage(ShapedType type,


        


More information about the Mlir-commits mailing list