clangir icon indicating copy to clipboard operation
clangir copied to clipboard

Revisit insertion point being restored by an InsertionGuard in `buildSwitchBody()`

Open bcardosolopes opened this issue 8 months ago • 1 comments

          These tests are failing because the insertion point is restored by an InsertionGuard in `buildSwitchBody()`. I suggest revising that part after #528 is merged to avoid conflict.

https://github.com/llvm/clangir/blob/3da10fafac66ff125fb59c602e41ad4b4f5cb382/clang/lib/CIR/CodeGen/CIRGenStmt.cpp#L972-L978

Originally posted by @piggynl in https://github.com/llvm/clangir/pull/611#discussion_r1603235462

bcardosolopes avatar Jun 06 '24 22:06 bcardosolopes