[clang-repl] Fix incorrect return code
authorJun Zhang <jun@junz.org>
Sun, 31 Jul 2022 09:49:13 +0000 (17:49 +0800)
committerJun Zhang <jun@junz.org>
Sun, 31 Jul 2022 11:07:05 +0000 (19:07 +0800)
commit9caee577ef0f97242a233174be8a980bc4d5446e
treedcfe2a48d80c4e3429166904b26743325c5f02cb
parent9cdba33337423f0083680c8f00251cc484b3898d
[clang-repl] Fix incorrect return code

Without this patch, clang-repl incorrectly pass some tests when there's
error occured.

Signed-off-by: Jun Zhang <jun@junz.org>
Differential Revision: https://reviews.llvm.org/D130422
clang/test/Interpreter/fail.cpp [new file with mode: 0644]
clang/tools/clang-repl/ClangRepl.cpp