================
@@ -283,6 +283,16 @@ Type RecordType::getLargestMember(const ::mlir::DataLayout
&dataLayout) const {
});
}
+bool RecordType::isLayoutIdentical(const RecordType &other) {
+ if (getImpl() == other.getImpl())
+ return true;
+
+ if (getPacked() != other.getPacked())
+ return false;
+
+ return getMembers() == other.getMembers();
----------------
erichkeane wrote:
IS this enough? The bases don't matter here?
https://github.com/llvm/llvm-project/pull/155663
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits