[llvm-branch-commits] [mlir] 238dbeb - [mlir][ODS] Fix missed rename of TypeParameter 'description' to 'summary'
River Riddle via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jan 6 23:16:04 PST 2021
Author: River Riddle
Date: 2021-01-06T22:25:06-08:00
New Revision: 238dbeb1e7bab488b964492f51b8ebbe850b6631
URL: https://github.com/llvm/llvm-project/commit/238dbeb1e7bab488b964492f51b8ebbe850b6631
DIFF: https://github.com/llvm/llvm-project/commit/238dbeb1e7bab488b964492f51b8ebbe850b6631.diff
LOG: [mlir][ODS] Fix missed rename of TypeParameter 'description' to 'summary'
This fixes document generation for type parameters.
Added:
Modified:
mlir/lib/TableGen/TypeDef.cpp
Removed:
################################################################################
diff --git a/mlir/lib/TableGen/TypeDef.cpp b/mlir/lib/TableGen/TypeDef.cpp
index 03bbb85d29ab..5c4f5348d1b3 100644
--- a/mlir/lib/TableGen/TypeDef.cpp
+++ b/mlir/lib/TableGen/TypeDef.cpp
@@ -145,7 +145,7 @@ StringRef TypeParameter::getCppType() const {
Optional<StringRef> TypeParameter::getSummary() const {
auto *parameterType = def->getArg(num);
if (auto *typeParameter = dyn_cast<llvm::DefInit>(parameterType)) {
- const auto *desc = typeParameter->getDef()->getValue("description");
+ const auto *desc = typeParameter->getDef()->getValue("summary");
if (llvm::StringInit *ci = dyn_cast<llvm::StringInit>(desc->getValue()))
return ci->getValue();
}
More information about the llvm-branch-commits
mailing list