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 ebf3e11..d2c5852 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 6f373f6..73df24c 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"),