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/clangtests.cpp =================================================================== --- /dev/null +++ clang/test/Interpreter/clangtests.cpp @@ -0,0 +1,4 @@ +// RUN: clang-repl %S/../Lexer/badstring_in_if0.c -Xcc -E -Xcc -verify +// RUN: clang-repl %S/../Lexer/unknown-char.c -Xcc -E -Xcc -verify +// RUN: clang-repl %S/../CodeGen/static-assert.cpp -Xcc -emit-llvm -Xcc -o -Xcc - -Xcc -std=c++11 -Xcc -verify +// expected-no-diagnostics