[clang] [clang-repl] fix segfault in CleanUpPTU() (PR #75629)

Pavel Kalugin via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 15 09:17:53 PST 2023


================
@@ -0,0 +1,10 @@
+// RUN: clang-repl "int x = 10;" "{ int t; a::b(t); }" "int y = 10;"
----------------
p4vook wrote:

I don't quite understand, the `code-undo.cpp` doesn't seem to have anything that produces an error, but this test does.
If we define a::b(t), clang-repl stops segfaulting.

https://github.com/llvm/llvm-project/pull/75629


More information about the cfe-commits mailing list