ikudrin added a comment.

I've reduced the last sample to the following:

      0|    1|void dummy() {}
       |    2|
      0|    3|#define MACRO_1 dummy()
       |    4|
      1|    5|#define MACRO_2 MACRO_1
       |    6|
      1|    7|int main() {
      1|    8|  int i = 0;
      1|    9|  if (i > 5)
      1|   10|    MACRO_2;
  ------------------
  |  |      1|    5|#define MACRO_2 MACRO_1
  |  |  ------------------
  |  |  |  |      0|    3|#define MACRO_1 dummy()
  |  |  ------------------
  ------------------
      1|   11|  return 0;
      1|   12|}

Right now, I don't have a good idea how to fix this.


https://reviews.llvm.org/D23160



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to