[all-commits] [llvm/llvm-project] 82950a: [clang][Interp] Protect ArrayElemPtr ops from dumm...
Timm Baeder via All-commits
all-commits at lists.llvm.org
Tue Feb 6 03:29:50 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 82950a695ddbd92beb07bf58b48067a1f67d57e3
https://github.com/llvm/llvm-project/commit/82950a695ddbd92beb07bf58b48067a1f67d57e3
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2024-02-06 (Tue, 06 Feb 2024)
Changed paths:
M clang/lib/AST/Interp/Interp.cpp
M clang/lib/AST/Interp/Interp.h
M clang/lib/AST/Interp/Pointer.h
M clang/test/Sema/fp-eval-pragma-with-float-double_t-1.c
M clang/test/Sema/fp-eval-pragma-with-float-double_t-2.c
M clang/test/Sema/fp-eval-pragma-with-float-double_t-3.c
Log Message:
-----------
[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.
More information about the All-commits
mailing list