[llvm] r321043 - TargetLowering: Fix off-by-one error
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 18 16:05:10 PST 2017
Author: matze
Date: Mon Dec 18 16:05:10 2017
New Revision: 321043
URL: http://llvm.org/viewvc/llvm-project?rev=321043&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/CodeGen/TargetLowering.h
Modified: llvm/trunk/include/llvm/CodeGen/TargetLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/TargetLowering.h?rev=321043&r1=321042&r2=321043&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/TargetLowering.h (original)
+++ llvm/trunk/include/llvm/CodeGen/TargetLowering.h Mon Dec 18 16:05:10 2017
@@ -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.
More information about the llvm-commits
mailing list