llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Fix crash in getFileIDLocal when ID is negative.

Open pfultz2 opened this issue 5 years ago • 0 comments

This moves the condition into the if statement so that short-circuiting can skip it when the ID is negative. Otherwise it can use a negative index for LocalSLocEntryTable[LastFileIDLookup.ID].

pfultz2 avatar Mar 27 '20 19:03 pfultz2