This PR is for fixing issue of constant propagation unresolved in function-like macro. Using operator < to compare two source locations may be the issue since its going to compare ID of two source locations which contains not only line number and column number, but also bits for isMacro and isFileID. If two source locations are in same file and are both not macro it is fine. But if one is macro and the other one is not, it may cause issue. (I have a test for that below).
This PR is for fixing issue of constant propagation unresolved in function-like macro. Using operator
<
to compare two source locations may be the issue since its going to compareID
of two source locations which contains not only line number and column number, but also bits forisMacro
andisFileID
. If two source locations are in same file and are both not macro it is fine. But if one is macro and the other one is not, it may cause issue. (I have a test for that below).@ruoso @burz @traveltissues