Unverified Commit 8bb827c0 authored by Shubham Sandeep Rastogi's avatar Shubham Sandeep Rastogi Committed by GitHub
Browse files

Add test for iterating over MDNode operands when they are empty (#80737)

With e8512786 the for loop that iterates
over MDNode operands was changed to a range-based for loop. This change
surfaces a bug where if the result of MD->operands() is an ArrayRef that
has a size of 0, then iterating over that ArrayRef leads to a
segmentation fault, due to accessing invalid addresses.
    
This was reverted with 6ce03ff3 but this
test should be added to test that codepath in the future.
parent e197b957
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment