Skip to content
Unverified Commit aa440ba2 authored by Roman Lebedev's avatar Roman Lebedev
Browse files

[NFCI][ValueTracking] getUnderlyingObject(): gracefully handle cycles

Normally, this function just doesn't bother about cycles,
and hopes that the caller supplied small-enough depth
so that at worst it will take a potentially large,
but limited amount of time. But that obviously doesn't work
if there is no depth limit.

This reapples 36f1c3db,
but without asserting, just bailout once cycle is detected.
parent 0c5b789c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment