Fix typo in prev commit.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73556 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/HostInfo.cpp b/lib/Driver/HostInfo.cpp
index daac0cb..831e11b 100644
--- a/lib/Driver/HostInfo.cpp
+++ b/lib/Driver/HostInfo.cpp
@@ -122,7 +122,7 @@
       // the ID based Triple interface.
       if (Arch == "ppc")
         Arch = "powerpc";
-      else if (Arch == "powerpc")
+      else if (Arch == "ppc64")
         Arch = "powerpc64";
     } else {
       // Otherwise default to the arch of the host.
diff --git a/test/Driver/default-toolchain.c b/test/Driver/default-toolchain.c
index a9f5cfd..216394f 100644
--- a/test/Driver/default-toolchain.c
+++ b/test/Driver/default-toolchain.c
@@ -2,4 +2,7 @@
 // RUN: grep 'Target: x86_64-unknown-unknown' %t &&
 
 // RUN: clang -ccc-host-triple i386-apple-darwin9 -arch ppc -m64 -v 2> %t
-// RUN: grep 'Target: powerpc64-apple-darwin9' %t
+// RUN: grep 'Target: powerpc64-apple-darwin9' %t &&
+
+// RUN: clang -ccc-host-triple i386-apple-darwin9 -arch ppc64 -m32 -v 2> %t
+// RUN: grep 'Target: powerpc-apple-darwin9' %t