[PATCH] D125946: Handles failing driver tests of clang

Purva Chaudhari via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 13 05:56:13 PDT 2022


Purva-Chaudhari updated this revision to Diff 444238.
Purva-Chaudhari added a comment.

modify tests


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125946/new/

https://reviews.llvm.org/D125946

Files:
  clang/lib/Interpreter/IncrementalParser.cpp
  clang/test/Interpreter/incremental-mode.cpp


Index: clang/lib/Interpreter/IncrementalParser.cpp
===================================================================
--- clang/lib/Interpreter/IncrementalParser.cpp
+++ clang/lib/Interpreter/IncrementalParser.cpp
@@ -69,8 +69,12 @@
             LLVM_FALLTHROUGH;
           case frontend::EmitAssembly:
             LLVM_FALLTHROUGH;
+          case frontend::EmitBC:
+            LLVM_FALLTHROUGH;
           case frontend::EmitObj:
             LLVM_FALLTHROUGH;
+          case frontend::PrintPreprocessedInput:
+            LLVM_FALLTHROUGH;
           case frontend::EmitLLVMOnly:
             Act.reset(new EmitLLVMOnlyAction(&LLVMCtx));
             break;
Index: clang/test/Interpreter/incremental-mode.cpp
===================================================================
--- /dev/null
+++ clang/test/Interpreter/incremental-mode.cpp
@@ -0,0 +1,3 @@
+// RUN: clang-repl -Xcc -E
+// RUN: clang-repl -Xcc -emit-llvm 
+// expected-no-diagnostics


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125946.444238.patch
Type: text/x-patch
Size: 956 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220713/fad6075e/attachment.bin>


More information about the cfe-commits mailing list