summaryrefslogtreecommitdiff
path: root/lib/Driver/CC1AsOptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Driver/CC1AsOptions.cpp')
-rw-r--r--lib/Driver/CC1AsOptions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Driver/CC1AsOptions.cpp b/lib/Driver/CC1AsOptions.cpp
index b1e0deae39..62c3afbb36 100644
--- a/lib/Driver/CC1AsOptions.cpp
+++ b/lib/Driver/CC1AsOptions.cpp
@@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
#include "clang/Driver/CC1AsOptions.h"
+#include "llvm/ADT/STLExtras.h"
#include "llvm/Option/OptTable.h"
#include "llvm/Option/Option.h"
using namespace clang;
@@ -36,8 +37,7 @@ namespace {
class CC1AsOptTable : public OptTable {
public:
CC1AsOptTable()
- : OptTable(CC1AsInfoTable,
- sizeof(CC1AsInfoTable) / sizeof(CC1AsInfoTable[0])) {}
+ : OptTable(CC1AsInfoTable, llvm::array_lengthof(CC1AsInfoTable)) {}
};
}