summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>2008-09-28 23:18:55 +0200
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>2008-09-28 23:18:55 +0200
commit7379d0ef8f533b0aa760cd21b219223602002a56 (patch)
tree724ba951e08f21925f207f708344ae5f22ac9248
parent6dacc942e158211a1f8be77cd7ba52947e504e7c (diff)
Gallivm: fix off-by-one.
-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);