diff options
author | Matthias Braun <matze@braunis.de> | 2017-12-19 00:05:10 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2017-12-19 00:05:10 +0000 |
commit | d53e70262dba7d67668a2516e731085d27610ed7 (patch) | |
tree | 88dd95e78be3e7ba7e1ae7569049bbedf3a5cbde /include | |
parent | 44b97045559b0a732caa3496a7dc018af2570fd8 (diff) |
TargetLowering: Fix off-by-one error
This problem was present for a while, but somehow asan didn't catch
it before the refactoring in r321036.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/TargetLowering.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/TargetLowering.h b/include/llvm/CodeGen/TargetLowering.h index deeb57da5d1..4cf589e0c75 100644 --- a/include/llvm/CodeGen/TargetLowering.h +++ b/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. |