[all-commits] [llvm/llvm-project] ad2fb0: [clang][Interp] Fix dereferencing arrays with no o...
Timm Bäder via All-commits
all-commits at lists.llvm.org
Wed Jan 25 02:22:03 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ad2fb01cb68dc17594d2a923da90f5e01e127cdf
https://github.com/llvm/llvm-project/commit/ad2fb01cb68dc17594d2a923da90f5e01e127cdf
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2023-01-25 (Wed, 25 Jan 2023)
Changed paths:
M clang/lib/AST/Interp/Pointer.h
M clang/test/AST/Interp/arrays.cpp
Log Message:
-----------
[clang][Interp] Fix dereferencing arrays with no offset applied
A pointer to an array and a pointer to the first element of the array
are not the same in the interpreter, so handle this specially in
deref().
Differential Revision: https://reviews.llvm.org/D137082
More information about the All-commits
mailing list