diff options
author | Stephane Marchesin <marchesin@icps.u-strasbg.fr> | 2008-09-28 23:18:55 +0200 |
---|---|---|
committer | Zack Rusin <zack@tungstengraphics.com> | 2008-10-02 10:19:47 -0400 |
commit | fdcaf569d446db830a6eafd9c7f7c1b1030c0a93 (patch) | |
tree | a1a49b2a969cbbb98df201da72218219daa9b73a /src/gallium/auxiliary | |
parent | 9859edc6060c8f4d23a91dbfabd786975e6447a2 (diff) |
Gallivm: fix off-by-one.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/gallivm/instructionssoa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/instructionssoa.cpp b/src/gallium/auxiliary/gallivm/instructionssoa.cpp index efddc04e81..9a3ed9f538 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 "<<m_builtins<<std::endl; assert(m_builtins); |