From: Stephane Marchesin Date: Sun, 28 Sep 2008 21:18:55 +0000 (+0200) Subject: Gallivm: fix off-by-one. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fdcaf569d446db830a6eafd9c7f7c1b1030c0a93;p=mesa.git Gallivm: fix off-by-one. --- diff --git a/src/gallium/auxiliary/gallivm/instructionssoa.cpp b/src/gallium/auxiliary/gallivm/instructionssoa.cpp index efddc04e818..9a3ed9f538d 100644 --- a/src/gallium/auxiliary/gallivm/instructionssoa.cpp +++ b/src/gallium/auxiliary/gallivm/instructionssoa.cpp @@ -259,7 +259,7 @@ void InstructionsSoa::createBuiltins() { MemoryBuffer *buffer = MemoryBuffer::getMemBuffer( (const char*)&soabuiltins_data[0], - (const char*)&soabuiltins_data[Elements(soabuiltins_data)]); + (const char*)&soabuiltins_data[Elements(soabuiltins_data)-1]); m_builtins = ParseBitcodeFile(buffer); std::cout<<"Builtins created at "<