Bring back a StringRef used in some build configurations

This was removed in the great unused local cleanup of r195814.

Adding cast-to-void to suppress unused variable warnings.

Should fix certain builds like ARCMT.

llvm-svn: 195872
This commit is contained in:
Alp Toker 2013-11-27 19:44:04 +00:00
parent 57ede3bd80
commit ba294d73a1
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,8 @@ using namespace llvm::opt;
static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) { static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) {
using namespace clang::frontend; using namespace clang::frontend;
StringRef Action("unknown");
(void)Action;
switch (CI.getFrontendOpts().ProgramAction) { switch (CI.getFrontendOpts().ProgramAction) {
case ASTDeclList: return new ASTDeclListAction(); case ASTDeclList: return new ASTDeclListAction();