arichardson added a comment.

In D59725#1477042 <https://reviews.llvm.org/D59725#1477042>, @lebedev.ri wrote:

> I've stumbled into an issue with the script:
>  It got a line: `clang: 
> /build/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:2582: bool 
> {anonymous}::IndVarSimplify::run(llvm::Loop*): Assertion 
> `L->isRecursivelyLCSSAForm(*DT, *LI) && "LCSSA required to run indvars!"' 
> failed.`
>  And produced the following grep: `grep 'L->isRecursivelyLCSSAForm(*DT, *LI) 
> && "LCSSA required to run indvars!"' t.log || exit 1`
>  But that doesn't work, escapes should be applied. it should be
>  `grep 'L->isRecursivelyLCSSAForm(\*DT, \*LI) && \"LCSSA required to run 
> indvars!\"' t.log || exit 1`


In my script I use `grep -F " + shlex.quote(self.args.crash_message)` which 
should escape both the message and ensure that the grep argument is not 
interpreted as a regex.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59725/new/

https://reviews.llvm.org/D59725



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

Reply via email to