]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/122225 - fix return stmt verification
authorRichard Biener <rguenther@suse.de>
Fri, 10 Oct 2025 06:20:22 +0000 (08:20 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 10 Oct 2025 07:39:36 +0000 (09:39 +0200)
commitaaa7ac48bd888ee7bbe95006b29bb2f7eaefd0b4
treea09c93bb7a74b371ae89afc356408aee51dde315
parentef29eabf5512c0149bfb8261a9a1bafae5547e00
tree-optimization/122225 - fix return stmt verification

The following fixes return stmt type verification by properly looking
at DECL_RESULT to decide whether that's by reference, not trying to
figure that from the actual argument.

PR tree-optimization/122225
* tree-cfg.cc (verify_gimple_return): Look at DECL_RESULT
for DECL_BY_REFERENCE.
gcc/tree-cfg.cc