[llvm] r335143 - Remove a redundant initialization. NFC

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 20 09:12:04 PDT 2018


Author: probinson
Date: Wed Jun 20 09:12:03 2018
New Revision: 335143

URL: http://llvm.org/viewvc/llvm-project?rev=335143&view=rev
Log:
Remove a redundant initialization. NFC

Modified:
    llvm/trunk/lib/MC/MCParser/AsmParser.cpp

Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=335143&r1=335142&r2=335143&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Wed Jun 20 09:12:03 2018
@@ -3283,7 +3283,7 @@ bool AsmParser::parseDirectiveFile(SMLoc
       return TokError("negative file number");
   }
 
-  std::string Path = getTok().getString();
+  std::string Path;
 
   // Usually the directory and filename together, otherwise just the directory.
   // Allow the strings to have escaped octal character sequence.




More information about the llvm-commits mailing list