================ @@ -113,13 +113,13 @@ struct AttributeLikeVariable : public VariableElement { return isa<VariableElement>(fe) && classof(cast<VariableElement>(fe)); } - /// Returns true if the variable is a UnitAttr or a UnitProperty. + /// Returns true if the variable is a UnitAttr or a UnitProp. bool isUnit() const { if (const auto *attr = dyn_cast<AttributeVariable>(this)) return attr->getVar()->attr.getBaseAttr().getAttrDefName() == "UnitAttr"; if (const auto *prop = dyn_cast<PropertyVariable>(this)) { return prop->getVar()->prop.getBaseProperty().getPropertyDefName() == - "UnitProperty"; + "UnitProp"; ---------------- zero9178 wrote:
Isn't this going to fail now for `UnitProperty`? https://github.com/llvm/llvm-project/pull/120368 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits