Properly update block flags during branch opt.
authorPat Gavlin <pagavlin@microsoft.com>
Wed, 2 Nov 2016 19:39:40 +0000 (12:39 -0700)
committerPat Gavlin <pagavlin@microsoft.com>
Wed, 2 Nov 2016 19:39:40 +0000 (12:39 -0700)
commitb0e3c23069a73943f52014b3cba52c56a6839439
tree7f96fdc9ea8ad81dd6ed4317bc30d97a892fdfc5
parente568823f22ec1dccc4ea785630c837e776d4ee09
Properly update block flags during branch opt.

`fgOptimizeBranch` was updating the flags for the predecessor block
using the flags from the wrong destination block. This was causing an
assert in `AllocateObjects` when verifying that all blocks that contain
`allocObj` nodes are properly marked with `BBF_HAS_NEWOBJ`.
src/jit/flowgraph.cpp