================
@@ -117,6 +118,29 @@ std::string CIRGenTypes::getRecordTypeName(const 
clang::RecordDecl *recordDecl,
   return builder.getUniqueRecordName(std::string(typeName));
 }
 
+mlir::Type CIRGenTypes::convertTypeForLoadStore(QualType qualType,
+                                                mlir::Type mlirType) {
+  if (!mlirType) {
+    mlirType = convertType(qualType);
+  }
+
+  if (qualType->isBitIntType())
+    return mlir::IntegerType::get(
----------------
andykaylor wrote:

I don't think we want this function at all, but we don't use MLIR builtin types 
in CIR, so this is definitely wrong.

https://github.com/llvm/llvm-project/pull/168347
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to