summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mlir/include/mlir/TableGen/Attribute.h2
-rw-r--r--mlir/lib/TableGen/Attribute.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/mlir/include/mlir/TableGen/Attribute.h b/mlir/include/mlir/TableGen/Attribute.h
index a8292a982320..579b93846b1c 100644
--- a/mlir/include/mlir/TableGen/Attribute.h
+++ b/mlir/include/mlir/TableGen/Attribute.h
@@ -50,7 +50,7 @@ public:
explicit Attribute(const llvm::DefInit *init);
// Returns the storage type if set. Returns the default storage type
- // ("Attribute") otherwise.
+ // ("::mlir::Attribute") otherwise.
StringRef getStorageType() const;
// Returns the return type for this attribute.
diff --git a/mlir/lib/TableGen/Attribute.cpp b/mlir/lib/TableGen/Attribute.cpp
index 3b949b0460be..9664eb91b235 100644
--- a/mlir/lib/TableGen/Attribute.cpp
+++ b/mlir/lib/TableGen/Attribute.cpp
@@ -65,7 +65,7 @@ StringRef Attribute::getStorageType() const {
const auto *init = def->getValueInit("storageType");
auto type = getValueAsString(init);
if (type.empty())
- return "Attribute";
+ return "::mlir::Attribute";
return type;
}