================
@@ -525,7 +525,8 @@ static SourceLocation ReadOriginalFileName(CompilerInstance 
&CI,
   if (T.isAtStartOfLine() || T.getKind() != tok::string_literal)
     return SourceLocation();
 
-  StringLiteralParser Literal(T, CI.getPreprocessor());
+  StringLiteralParser Literal(T, CI.getPreprocessor(),
+                              StringLiteralEvalMethod::Unevaluated);
----------------
abhina-sree wrote:

I added the following test now for this:
clang/test/Frontend/linemarker-invalid-escape.c

Please let me know if this is sufficient for I need more

https://github.com/llvm/llvm-project/pull/201413
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to