[all-commits] [llvm/llvm-project] e2f8ec: [clang][Interp] Fix variables referring to their o...
Timm Baeder via All-commits
all-commits at lists.llvm.org
Tue Nov 14 23:03:20 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e2f8ec72555cf42fc74468c9ff686d29434780af
https://github.com/llvm/llvm-project/commit/e2f8ec72555cf42fc74468c9ff686d29434780af
Author: Timm Baeder <tbaeder at redhat.com>
Date: 2023-11-15 (Wed, 15 Nov 2023)
Changed paths:
M clang/lib/AST/Interp/Interp.h
M clang/test/AST/Interp/c.c
M clang/test/AST/Interp/literals.cpp
Log Message:
-----------
[clang][Interp] Fix variables referring to their own address (#70587)
This was a combination of issues:
1) We can subtract pointers that don't point into arrays.
2) In C, everything is possible.
More information about the All-commits
mailing list