================
@@ -433,6 +433,22 @@ QualType Descriptor::getDataType(const ASTContext &Ctx)
const {
return getType();
}
+QualType Descriptor::getDataElemType() const {
+ if (const auto *E = asExpr()) {
----------------
shafik wrote:
We do this dance in `getDataType()` as well. This code duplication is bad, if
anything changes/needs fixing, we need to update this code in both places and
likely we will eventually forget and they will diverge.
This should be refactored so the common code is in one place in some fashion.
https://github.com/llvm/llvm-project/pull/174132
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits