<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/74665>74665</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [PDLL] When Native constraints have debug prints that include "\n", build fails at the end of the "\n" character with random errors. 
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          pavanimajety
      </td>
    </tr>
</table>

<pre>
    To reproduce, write a simple constraint like below. The error is during the build for a pass that a pattern using the following constraint. 

```
Constraint ConstraintThatHasAPrint:w
(rootValue: Value)[{
 llvm::dbgs() << "Printing from a constraint: NAME \n ";
 return success();
}];
```

Eg Error: 

```
/path/to/filename.pdll.h.inc:75:19: error: missing terminating '"' character [-Werror,-Winvalid-pp-token]
  llvm::dbgs() << "Printing from a constraint: NAME  
 ^
/path/to/filename.pdll.h.inc:75:19: error: expected expression
/path/to/filename.pdll.h.inc:76:1: error: missing terminating '"' character [-Werror,-Winvalid-pp-token]
";

```



</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0VMGOozgQ_ZriUgoidhzCgQOddLSH2dEcWttnAxXwjLGRbZKdv1_ZpDfZS0ur3ZGQKeOq53qvipLeq8EQ1SBeQJwyuYTRunqWV2nUJL9T-Jm1tv9Zv1l0NDvbLx0BO-LNqUAo0atp1oSdNT44qUxArX4QtqTtLce3kZCcsw6Vx35xygwYRsJ2UbrHi3UocZbeYxhlSHYI5Awu_sPzYrW2t7h7XJEjFCcomvu6L-5P2h4fmTzMt1GG36RvvjllAvDmdg9lB2dt-EPqhYA3uBqsimKUL6sPan2dgDfAm74dPLADsAqBH4EfERhLkDG_i7MTyqc0I-LX5vdXBHE00RX4B6ajsDiDfuk68nfMv0-hPIE4Pbb_5LeurwO-Rl3jHZ-IAew8yzACOwcL7HxRmoycKJ97rfMxV6YD3pQCeLOtIhR9YE7KryUgNykjE0FgZSTBSuxG6WQXyCGIl837GsWOm3dlrlKrfjPPm2B_kIk8Vsb_g4x3ogji9T-yoz9n6gL10XDkvbLm3yDuI-Ivleu5WT7pgnXN-pr3Fa9kRvW2LLZVsS1ZlY11UZaHVpa8LYQ4XNhOVnTZl_u2OwhBXFSZqlnB-JYVe8bYYVflVVWKiyiqstvxinct7AqapNJ5rF5u3ZAp7xeqy91-LzItW9I-jQ7GDN0wHcbcxSlzdYzZtMvgYVdo5YN_oAQVdJo5305fvoA44ftIBr_KoK7Ps8TjKK-EPbXLgLNLX9KkUKbTS0_ppxJHk3Q-fkwVqbRHGdL4INOjvSTz4ftUkJsKIzppejut1fQ5ZovT9RjC7GO_sjOw86DCuLR5Zydg59TJ62szO_udugDsnLh7YOekzV8BAAD__3-pok8">