2 Commits

Author SHA1 Message Date
Timm Baeder
5bb99edcb6
[clang][Interp] Add inline descriptor to global variables (#72892)
Some time ago, I did a similar patch for local variables.

Initializing global variables can fail as well:
```c++
constexpr int a = 1/0;
static_assert(a == 0);
```
... would succeed in the new interpreter, because we never saved the
fact that `a` has not been successfully initialized.
2024-01-31 08:03:37 +01:00
Timm Bäder
2f43ace0f4 [clang][Interp] Fix expected values for Pointer API
Add a unit test for this.

Differential Revision: https://reviews.llvm.org/D158069
2023-10-12 13:08:42 +02:00