From: Bernard Ogden Date: Thu, 12 Dec 2013 13:27:15 +0000 (+0000) Subject: Simple refactoring to eliminate single-use local variable X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc5e63bc22b8b5be7b552c1ce93b0a7c359bc83a;p=clang Simple refactoring to eliminate single-use local variable git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197154 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 04f8e8ca5f..74cd393775 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -4466,14 +4466,12 @@ const char *arm::getARMCPUForMArch(const ArgList &Args, } // Handle -march=native. - std::string NativeMArch; if (MArch == "native") { std::string CPU = llvm::sys::getHostCPUName(); if (CPU != "generic") { // Translate the native cpu into the architecture. The switch below will // then chose the minimum cpu for that arch. - NativeMArch = std::string("arm") + arm::getLLVMArchSuffixForARM(CPU); - MArch = NativeMArch; + MArch = std::string("arm") + arm::getLLVMArchSuffixForARM(CPU); } }