[InstCombine] Fix use-after-free in OptimizePointerDifference()
EmitGEPOffset() may remove the old GEP, so be sure to cache the inbounds flag beforehand.
parent
c7f4b3e1
Please register or sign in to comment
EmitGEPOffset() may remove the old GEP, so be sure to cache the inbounds flag beforehand.