about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2018-11-05 15:14:28 +0100
committerDavid Wood <david@davidtw.co>2018-11-05 17:40:40 +0100
commit1672c27a7dbeda2ea3b1aa775b259fc90a270870 (patch)
treeaa1b84c9d3d9ed65f4dcaa794f12b9e63ee9e3c9 /src/libsyntax
parent8e7786a2d9285fc79ec595d85081064560b9d4e4 (diff)
downloadrust-1672c27a7dbeda2ea3b1aa775b259fc90a270870.tar.gz
rust-1672c27a7dbeda2ea3b1aa775b259fc90a270870.zip
Improve predecessor detection.
It is necessary to detect whether we are making the first
assignment into a union. This is checked by looking at the moves and
checking if there are any from locations earlier in the control flow
graph.

This commit improves the detection of this by switching from a naive
method that compared only the statement and basic block indices with
a more robust method that looks at the predecessors of a location.
Diffstat (limited to 'src/libsyntax')
0 files changed, 0 insertions, 0 deletions