diff options
author | Stephane Marchesin <[email protected]> | 2008-11-16 20:32:05 +0100 |
---|---|---|
committer | Stephane Marchesin <[email protected]> | 2008-11-16 20:32:05 +0100 |
commit | 7b0e0e1a0d571291851e8a7b2e64c8425055cd69 (patch) | |
tree | a8ef37b0b11776f3c4b78702b05bd914d9a023da /src | |
parent | 96ad8a36003a21180ad6b61aa0b7d7c9452b3449 (diff) |
gallivm: fix some small stuff.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/gallivm/gallivm_p.h | 4 | ||||
-rw-r--r-- | src/gallium/auxiliary/gallivm/storage.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/gallivm/gallivm_p.h b/src/gallium/auxiliary/gallivm/gallivm_p.h index ebf3e11cd56..d2c5852bdf7 100644 --- a/src/gallium/auxiliary/gallivm/gallivm_p.h +++ b/src/gallium/auxiliary/gallivm/gallivm_p.h @@ -101,10 +101,10 @@ static INLINE int gallivm_w_swizzle(int swizzle) return w; } -#endif /* MESA_LLVM */ - #if defined __cplusplus } #endif +#endif /* MESA_LLVM */ + #endif diff --git a/src/gallium/auxiliary/gallivm/storage.cpp b/src/gallium/auxiliary/gallivm/storage.cpp index 6f373f6dd5e..73df24c9769 100644 --- a/src/gallium/auxiliary/gallivm/storage.cpp +++ b/src/gallium/auxiliary/gallivm/storage.cpp @@ -323,7 +323,7 @@ llvm::Value * Storage::elemIdx(llvm::Value *ptr, int idx, if (indIdx) { getElem = GetElementPtrInst::Create(ptr, - BinaryOperator::create(Instruction::Add, + BinaryOperator::Create(Instruction::Add, indIdx, constantInt(idx), name("add"), |