llvm-project
llvm-project copied to clipboard
Fix crash in getFileIDLocal when ID is negative.
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].