projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee0fe4
)
Fix unsafe memory access.
author
Rui Ueyama
<ruiu@google.com>
Sun, 31 May 2015 03:57:30 +0000
(
03:57
+0000)
committer
Rui Ueyama
<ruiu@google.com>
Sun, 31 May 2015 03:57:30 +0000
(
03:57
+0000)
llvm-svn: 238669
lld/COFF/SymbolTable.cpp
patch
|
blob
|
history
diff --git
a/lld/COFF/SymbolTable.cpp
b/lld/COFF/SymbolTable.cpp
index
9a2b03b
..
f70ba37
100644
(file)
--- a/
lld/COFF/SymbolTable.cpp
+++ b/
lld/COFF/SymbolTable.cpp
@@
-15,6
+15,8
@@
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
+using namespace llvm;
+
namespace lld {
namespace coff {
@@
-172,7
+174,7
@@
ErrorOr<StringRef> SymbolTable::findDefaultEntry() {
{"WinMain", "WinMainCRTStartup"},
{"wWinMain", "wWinMainCRTStartup"},
};
- for (size_t I = 0; I <
size
of(Entries); ++I) {
+ for (size_t I = 0; I <
array_length
of(Entries); ++I) {
if (!find(Entries[I][0]))
continue;
if (auto EC = addSymbol(new Undefined(Entries[I][1])))