gallivm: fix some small stuff.
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Sun, 16 Nov 2008 19:32:05 +0000 (20:32 +0100)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Sun, 16 Nov 2008 19:32:05 +0000 (20:32 +0100)
src/gallium/auxiliary/gallivm/gallivm_p.h
src/gallium/auxiliary/gallivm/storage.cpp

index ebf3e11cd566ba0074b51e1808f4c69899c4af7f..d2c5852bdf780f7e7db2351742c6ff4796a5632f 100644 (file)
@@ -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
index 6f373f6dd5e614cdff57df49dfeaf29318c0cdaa..73df24c976985a91138a3936563ff91b875aaa5e 100644 (file)
@@ -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"),