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