summaryrefslogtreecommitdiffstats
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
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
commitba294d73a10446c23ff7c203b3fd4f453f26e722 (patch)
treee5ad77e0129f9aa420458790f79b7656b2f4d928 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parent57ede3bd8087a128958c1f68b5cd619bae1a2614 (diff)
downloadbcm5719-llvm-ba294d73a10446c23ff7c203b3fd4f453f26e722.tar.gz
bcm5719-llvm-ba294d73a10446c23ff7c203b3fd4f453f26e722.zip
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
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
-rw-r--r--clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index f55c6021789..e22f9ba0523 100644
--- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud