summaryrefslogtreecommitdiff
path: root/lib/FrontendTool
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2013-11-27 19:44:04 +0000
committerAlp Toker <alp@nuanti.com>2013-11-27 19:44:04 +0000
commit102c74ce65073b2ce88ba91bc08b0b8b1fa34878 (patch)
treebdfb27e4dbad7cf8cc8ad9f12dd273902e67eb55 /lib/FrontendTool
parentf6ddb09a86091d1fb9e821486f13f42c522e2ead (diff)
downloadclang-102c74ce65073b2ce88ba91bc08b0b8b1fa34878.tar.gz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/FrontendTool')
-rw-r--r--lib/FrontendTool/ExecuteCompilerInvocation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index f55c602178..e22f9ba052 100644
--- a/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/lib/FrontendTool/ExecuteCompilerInvocation.cpp
@@ -32,6 +32,8 @@ using namespace llvm::opt;
static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) {
using namespace clang::frontend;
+ StringRef Action("unknown");
+ (void)Action;
switch (CI.getFrontendOpts().ProgramAction) {
case ASTDeclList: return new ASTDeclListAction();