================
@@ -1165,10 +1165,35 @@ mlir::LogicalResult 
CIRGenFunction::emitSwitchBody(const Stmt *s) {
 
   auto *compoundStmt = cast<CompoundStmt>(s);
 
-  mlir::Block *swtichBlock = builder.getBlock();
-  for (auto *c : compoundStmt->body()) {
+  ArrayRef<Stmt *> body{compoundStmt->body_begin(), compoundStmt->body_end()};
----------------
erichkeane wrote:

No, thats an iterator_range.  I could use that instead of array-ref for the 
range, but it doesn't have a 'drop-front' type function.

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

Reply via email to