diff options
author | Richard Biener <rguenther@suse.de> | 2022-01-18 13:26:22 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-01-18 14:33:01 +0100 |
commit | 3ed40db0f12994e64434dc2e0590ba1da7ba5f60 (patch) | |
tree | 52aa05b7d8a4568e15ad66da96bcdfcee26b0ac7 /gcc/tree-vectorizer.h | |
parent | 4288b57affe34fbc60badf798eb0c19892e69980 (diff) | |
download | gcc-3ed40db0f12994e64434dc2e0590ba1da7ba5f60.zip gcc-3ed40db0f12994e64434dc2e0590ba1da7ba5f60.tar.gz gcc-3ed40db0f12994e64434dc2e0590ba1da7ba5f60.tar.bz2 |
tree-optimization/103987 - guard DSE modref query
This adds a missing guard for a pointer to the DSE modref query,
otherwise we can end up invoking APIs desired to only work on
pointers on non-pointers when there are mismatches between declared
and actual arguments of functions in the program.
2022-01-18 Richard Biener <rguenther@suse.de>
PR tree-optimization/103987
* tree-ssa-dse.cc (dse_optimize_call): Properly guard modref
query with a pointer check.
* gcc.dg/torture/pr103987.c: New testcase.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions