aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/LLCOptions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llc/LLCOptions.cpp b/tools/llc/LLCOptions.cpp
index b3d2688..6ba1427 100644
--- a/tools/llc/LLCOptions.cpp
+++ b/tools/llc/LLCOptions.cpp
@@ -83,8 +83,8 @@ LLCOptions::ParseExtraArgs()
// output file name may be specified with -o option;
// otherwise create it from the input file name by replace ".ll" with ".o"
- const char* outfilenameOpt = this->StringOptionValue(OUTFILENAME_OPT);
- if (outfilenameOpt)
+ const string &outfilenameOpt = StringOptionValue(OUTFILENAME_OPT);
+ if (outfilenameOpt.length())
{// "-o" option was used
outputFileName = outfilenameOpt;
}