[cfe-commits] r95848 - /cfe/trunk/lib/Driver/Driver.cpp
Daniel Dunbar
daniel at zuster.org
Wed Feb 10 19:16:07 PST 2010
Author: ddunbar
Date: Wed Feb 10 21:16:07 2010
New Revision: 95848
URL: http://llvm.org/viewvc/llvm-project?rev=95848&view=rev
Log:
Driver: Fix infinite loop and wrong message on invalid -ccc-clang-arch argument.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=95848&r1=95847&r2=95848&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Wed Feb 10 21:16:07 2010
@@ -158,10 +158,8 @@
llvm::Triple::ArchType Arch =
llvm::Triple(Split.first, "", "").getArch();
- if (Arch == llvm::Triple::UnknownArch) {
- Diag(clang::diag::err_drv_invalid_arch_name) << Arch;
- continue;
- }
+ if (Arch == llvm::Triple::UnknownArch)
+ Diag(clang::diag::err_drv_invalid_arch_name) << Split.first;
CCCClangArchs.insert(Arch);
}
More information about the cfe-commits
mailing list