diff options
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 04f8e8ca5f8..74cd3937752 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/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); } } |

