commit | c335d183cffdbe2f6041789bfcb7aad5148663c2 | [log] [tgz] |
---|---|---|
author | Tatiana Shpeisman <shpeisman@google.com> | Fri Aug 03 11:12:34 2018 -0700 |
committer | jpienaar <jpienaar@google.com> | Fri Mar 29 12:55:06 2019 -0700 |
tree | c0349260fcf73fa1f0ae6b9cad497e521d829985 | |
parent | baf1bcafbfe7e29a06f04b129785e77c6c552840 [diff] |
Fix segfaults when printing unlinked statements, instructions and blocks. Fancy printing requires a pointer to the function since SSA values get function-specific names. This CL adds checks to ensure that we don't dereference null pointers in unliked objects. Unlinked statements, instructions and blocks are printed as <<UNLINKED STATEMENT>> etc. PiperOrigin-RevId: 207293992