r186305 - Revert 186302 to fix build bots.
Craig Topper
craig.topper at gmail.com
Sun Jul 14 22:44:18 PDT 2013
Author: ctopper
Date: Mon Jul 15 00:44:18 2013
New Revision: 186305
URL: http://llvm.org/viewvc/llvm-project?rev=186305&view=rev
Log:
Revert 186302 to fix build bots.
Modified:
cfe/trunk/tools/driver/driver.cpp
Modified: cfe/trunk/tools/driver/driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/driver.cpp?rev=186305&r1=186304&r2=186305&view=diff
==============================================================================
--- cfe/trunk/tools/driver/driver.cpp (original)
+++ cfe/trunk/tools/driver/driver.cpp Mon Jul 15 00:44:18 2013
@@ -303,7 +303,7 @@ static void ParseProgName(SmallVectorImp
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)
More information about the cfe-commits
mailing list