diff options
author | T-Gruber <100079402+T-Gruber@users.noreply.github.com> | 2024-10-25 11:59:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-25 11:59:16 +0200 |
commit | 86d65ae7949e0322f10e1856c5c33caa34ebfe2f (patch) | |
tree | 50d0c0174b5c7929ff9e354b95d5c37c18356d25 /llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp | |
parent | 6bb6922de92d8413321f57f74769380c6b6f45ee (diff) | |
download | llvm-86d65ae7949e0322f10e1856c5c33caa34ebfe2f.zip llvm-86d65ae7949e0322f10e1856c5c33caa34ebfe2f.tar.gz llvm-86d65ae7949e0322f10e1856c5c33caa34ebfe2f.tar.bz2 |
[analyzer] Improve FieldRegion descriptive name (#112313)
The current implementation of MemRegion::getDescriptiveName fails for
FieldRegions whose SuperRegion is an ElementRegion. As outlined below:
```Cpp
struct val_struct { int val; };
extern struct val_struct val_struct_array[3];
void func(){
// FieldRegion with ElementRegion as SuperRegion.
val_struct_array[0].val;
}
```
For this special case, the expression cannot be pretty printed and must
therefore be obtained separately.
Diffstat (limited to 'llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp')
0 files changed, 0 insertions, 0 deletions