llvm-project
06dcba66 - [flang][debug] Add fake use ops for dynamic array dimension variables (#200061)

Commit
21 days ago
[flang][debug] Add fake use ops for dynamic array dimension variables (#200061) In cases where the upper or lower bounds of a dynamic array are not explicitly referenced in code, flang can optimize away the internal variables that represent these values. This causes missing values to appear in the debugger when examining the dynamic array's type. Adding an llvm.fake.use op for each bound preserves it for use by a debugger, similar to the fix for #185432. Resolves #119474
Author
Parents
Loading