[clang] [CIR] cir.call with scalar return type (PR #135552)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 16 06:43:38 PDT 2025


================
@@ -14,9 +14,14 @@ using namespace clang::CIRGen;
 
 CIRGenTypes::CIRGenTypes(CIRGenModule &genModule)
     : cgm(genModule), astContext(genModule.getASTContext()),
-      builder(cgm.getBuilder()) {}
+      builder(cgm.getBuilder()),
+      theABIInfo(cgm.getTargetCIRGenInfo().getABIInfo()) {}
 
-CIRGenTypes::~CIRGenTypes() {}
+CIRGenTypes::~CIRGenTypes() {
+  using Iterator = llvm::FoldingSet<CIRGenFunctionInfo>::iterator;
+  for (Iterator i = functionInfos.begin(), e = functionInfos.end(); i != e;)
----------------
erichkeane wrote:

```suggestion
  for (auto i = functionInfos.begin(), e = functionInfos.end(); i != e;)
```

https://github.com/llvm/llvm-project/pull/135552


More information about the cfe-commits mailing list