summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>2008-09-28 23:18:55 +0200
committerZack Rusin <zack@tungstengraphics.com>2008-10-02 10:19:47 -0400
commitfdcaf569d446db830a6eafd9c7f7c1b1030c0a93 (patch)
treea1a49b2a969cbbb98df201da72218219daa9b73a /src
parent9859edc6060c8f4d23a91dbfabd786975e6447a2 (diff)
Gallivm: fix off-by-one.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/gallivm/instructionssoa.cpp2
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);