forked from OSchip/llvm-project
Driver: Fix infinite loop and wrong message on invalid -ccc-clang-arch argument.
llvm-svn: 95848
This commit is contained in:
parent
c162e8e193
commit
84f22f9da1
|
@ -158,10 +158,8 @@ Compilation *Driver::BuildCompilation(int argc, const char **argv) {
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue