]> granicus.if.org Git - clang/commitdiff
Revert 186302 to fix build bots.
authorCraig Topper <craig.topper@gmail.com>
Mon, 15 Jul 2013 05:44:18 +0000 (05:44 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 15 Jul 2013 05:44:18 +0000 (05:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186305 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/driver.cpp

index 6d81db1f2ac5cb222ce1f49ec5ce084a473308b6..48eeed91eafef6dff1a7027c9214861b4a9538e2 100644 (file)
@@ -303,7 +303,7 @@ static void ParseProgName(SmallVectorImpl<const char *> &ArgVector,
     bool FoundMatch = false;
     size_t i;
 
-    for (i = 0; i < llvm::array_lengthof(suffixes); ++i) {
+    for (i = 0; i < sizeof(suffixes) / sizeof(suffixes[0]); ++i) {
       if (ProgNameRef.endswith(suffixes[i].Suffix)) {
         FoundMatch = true;
         if (suffixes[i].IsCXX)