In SemaLookup.cpp, line 4102 the test is somewhat wrong, as count
(surprisingly given its name) return a boolean and not an integer.

      locs->second.count(TypoName.getLoc()) > 0)

A patch is attached.

I think this count function should be renamed to exists to better reflect
its function.

Yaron

Attachment: semalookup.diff
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to