[PATCH] D23515: [msan] Correct @LINE expression in obstack.cc

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 15 11:49:44 PDT 2016


dsanders added a comment.

In https://reviews.llvm.org/D23515#515435, @eugenis wrote:

> That's because the check is on line 33, which [-30] equals to 3, which also happens to be first character of the string "30".


Thanks. That also explains why adding two lines caused the test to fail since 35-30 is 5 which does not match.

> Does [[@LINE-3]] work if you remove the extra empty lines?


Yes, [[@LINE-3]] works both with and without the extra lines.


https://reviews.llvm.org/D23515





More information about the llvm-commits mailing list