3 Commits

Author SHA1 Message Date
Timm Bäder
82950a695d [clang][Interp] Protect ArrayElemPtr ops from dummy pointers
Change the semantics of Pointer::isDummy() to check for a null
Pointee and returnd false in that case. Then call CheckDummy()
in ArrayElemPtr{,Pop} to protect those ops from operating on
dummy pointers and enable a few tests in test/Sema/ that now
work with the new constant interpreter.
2024-02-06 12:29:35 +01:00
Zahira Ammarguellat
9fd3321db7 Fix test regression on 32-bit x86.
Differential Revision: https://reviews.llvm.org/D153770
2023-06-29 11:02:38 -04:00
Zahira Ammarguellat
63b0b82fd6 When float_t and double_t types are used inside a scope with
a '#pragma clang fp eval_method, it can lead to ABI breakage.
See https://godbolt.org/z/56zG4Wo91
This patch prevents this.

Differential Revision: https://reviews.llvm.org/D153590
2023-06-23 15:12:51 -04:00