[lld] r331703 - Rename a local variable whose scope is very narrow. NFC.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon May 7 16:43:48 PDT 2018


Author: ruiu
Date: Mon May  7 16:43:48 2018
New Revision: 331703

URL: http://llvm.org/viewvc/llvm-project?rev=331703&view=rev
Log:
Rename a local variable whose scope is very narrow. NFC.

Modified:
    lld/trunk/ELF/LTO.cpp

Modified: lld/trunk/ELF/LTO.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LTO.cpp?rev=331703&r1=331702&r2=331703&view=diff
==============================================================================
--- lld/trunk/ELF/LTO.cpp (original)
+++ lld/trunk/ELF/LTO.cpp Mon May  7 16:43:48 2018
@@ -55,11 +55,11 @@ static void saveBuffer(StringRef Buffer,
 }
 
 static void diagnosticHandler(const DiagnosticInfo &DI) {
-  SmallString<128> ErrStorage;
-  raw_svector_ostream OS(ErrStorage);
+  SmallString<128> S;
+  raw_svector_ostream OS(S);
   DiagnosticPrinterRawOStream DP(OS);
   DI.print(DP);
-  warn(ErrStorage);
+  warn(S);
 }
 
 static void checkError(Error E) {




More information about the llvm-commits mailing list