================
@@ -77,6 +77,16 @@ class EvalEmitter : public SourceMapper {
   EvalEmitter(Context &Ctx, Program &P, Expr::EvalStatus &Status,
               InterpStack &Stk, FrameAllocator &FrameAlloc);
 
+  unsigned currentCodeSize() const {
+    llvm_unreachable("Should never be called on EvalEmitter");
----------------
zwuis wrote:

This is reachable. This will be indirectly called by 
`Sema::CheckForIntOverflow`.

<details>
<summary>Reproducer</summary>

```cpp
int add(int a, int b) { return a + b; }
int f(int x) {
  return add(({
    try { x = 1; } catch (...) { x = 2; }
    x;
  }), 0) + 1;
}
```

</details>

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

Reply via email to