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:
b23a201
)
TargetLowering: Fix off-by-one error
author
Matthias Braun
<matze@braunis.de>
Tue, 19 Dec 2017 00:05:10 +0000
(
00:05
+0000)
committer
Matthias Braun
<matze@braunis.de>
Tue, 19 Dec 2017 00:05:10 +0000
(
00:05
+0000)
This problem was present for a while, but somehow asan didn't catch
it before the refactoring in r321036.
llvm-svn: 321043
llvm/include/llvm/CodeGen/TargetLowering.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/CodeGen/TargetLowering.h
b/llvm/include/llvm/CodeGen/TargetLowering.h
index
deeb57d
..
4cf589e
100644
(file)
--- a/
llvm/include/llvm/CodeGen/TargetLowering.h
+++ b/
llvm/include/llvm/CodeGen/TargetLowering.h
@@
-2429,7
+2429,7
@@
private:
PromoteToType;
/// Stores the name each libcall.
- const char *LibcallRoutineNames[RTLIB::UNKNOWN_LIBCALL];
+ const char *LibcallRoutineNames[RTLIB::UNKNOWN_LIBCALL
+ 1
];
/// The ISD::CondCode that should be used to test the result of each of the
/// comparison libcall against zero.