Revert 186302 to fix build bots.

llvm-svn: 186305
This commit is contained in:
Craig Topper 2013-07-15 05:44:18 +00:00
parent 17da171f1a
commit 2870072a91
1 changed files with 1 additions and 1 deletions

View 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)