[clang] Revert "[clang-repl] Fix crashing on unusable top-level declarations" (PR #230734)
Ivy Xu via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 9 22:45:30 PDT 2026
================
@@ -19,7 +19,3 @@ auto r2 = printf("S[f=%f, m=0x%llx]\n", s.f, reinterpret_cast<unsigned long long
inline int foo() { return 42; }
int r3 = foo();
-
-return;
-printf("not crashed\n");
-// CHECK-NEXT: not crashed
----------------
IvyXu420 wrote:
Because if there was a regression, the `return;` above would crash the whole test process.
https://github.com/llvm/llvm-project/pull/230734
More information about the cfe-commits
mailing list