]> granicus.if.org Git - llvm/commit
[SDAG] Fix Stale SDNode usage in visitAND
authorNirav Dave <niravd@google.com>
Tue, 28 Mar 2017 14:11:20 +0000 (14:11 +0000)
committerNirav Dave <niravd@google.com>
Tue, 28 Mar 2017 14:11:20 +0000 (14:11 +0000)
commit5dc2b583019acfc6e9f4d3e992ec0e49a675d292
tree917292d511e03ba2d76fe8e0cb7f439753ae959b
parente43ad9f7000f48eb8b7dfa17e0255b328a53a5ef
[SDAG] Fix Stale SDNode usage in visitAND

Reorder CombineTo Calls to prevent potential use of deleted node.
Fixes PR32372.

Reviewers: jnspaulsson, RKSimon, uweigand, jonpa

Reviewed By: jonpa

Subscribers: jonpa, llvm-commits

Differential Revision: https://reviews.llvm.org/D31346

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298920 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/SystemZ/pr32372.ll [new file with mode: 0644]