clangir
clangir copied to clipboard
Revisit insertion point being restored by an InsertionGuard in `buildSwitchBody()`
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