summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm
diff options
context:
space:
mode:
authorStephane Marchesin <[email protected]>2008-09-28 23:18:55 +0200
committerStephane Marchesin <[email protected]>2008-09-28 23:18:55 +0200
commit7379d0ef8f533b0aa760cd21b219223602002a56 (patch)
tree724ba951e08f21925f207f708344ae5f22ac9248 /src/gallium/auxiliary/gallivm
parent6dacc942e158211a1f8be77cd7ba52947e504e7c (diff)
Gallivm: fix off-by-one.
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-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 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 "<<m_builtins<<std::endl;
assert(m_builtins);