summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2016-05-21 16:03:50 +0000
committerHal Finkel <hfinkel@anl.gov>2016-05-21 16:03:50 +0000
commit7b1b3daf6e7adee838bcb76621dc6adb1cbadae6 (patch)
tree9bde74090a89738c7d597db67dd3f1dd45700aac /llvm/lib/Transforms/Utils
parenta63a1297499a36f3063bcc36ec07c9d5c531c15f (diff)
downloadbcm5719-llvm-7b1b3daf6e7adee838bcb76621dc6adb1cbadae6.tar.gz
bcm5719-llvm-7b1b3daf6e7adee838bcb76621dc6adb1cbadae6.zip
[LiveIntervalAnalysis] Don't dereference an end iterator in repairIntervalsInRange
This fixes a bug introduced in: r262115 - CodeGen: Take MachineInstr& in SlotIndexes and LiveIntervals, NFC The iterator End here might == MBB->end(), and so we can't unconditionally dereference it. This often goes unnoticed (I don't have a test case that always crashes, and ASAN does not catch it either) because the function call arguments are turned right back into iterators. MachineInstrBundleIterator's constructor, however, does have an assert which might randomly fire. llvm-svn: 270323
Diffstat (limited to 'llvm/lib/Transforms/Utils')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud