diff options
Diffstat (limited to 'llvm/tools/llc/LLCOptions.cpp')
| -rw-r--r-- | llvm/tools/llc/LLCOptions.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/llvm/tools/llc/LLCOptions.cpp b/llvm/tools/llc/LLCOptions.cpp index b3d26885ebc..6ba14277202 100644 --- a/llvm/tools/llc/LLCOptions.cpp +++ b/llvm/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;       } | 

