[llvm] r182293 - R600: Fix bug detected by GCC warning.
Benjamin Kramer
benny.kra at googlemail.com
Mon May 20 08:58:43 PDT 2013
Author: d0k
Date: Mon May 20 10:58:43 2013
New Revision: 182293
URL: http://llvm.org/viewvc/llvm-project?rev=182293&view=rev
Log:
R600: Fix bug detected by GCC warning.
R600TextureIntrinsicsReplacer.cpp:232: warning: the address of ‘ArgsType’ will always evaluate as ‘true’
This doesn't have any effect on the output as a vararg intrinsic behaves the
same way as a non-vararg one.
Modified:
llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
Modified: llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp?rev=182293&r1=182292&r2=182293&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp (original)
+++ llvm/trunk/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp Mon May 20 10:58:43 2013
@@ -229,7 +229,7 @@ public:
Int32Type,
Int32Type,
};
- TexSign = FunctionType::get(V4f32Type, ArgsType);
+ TexSign = FunctionType::get(V4f32Type, ArgsType, /*isVarArg=*/false);
Type *ArgsQType[] = {
V4i32Type,
Int32Type,
@@ -242,7 +242,7 @@ public:
Int32Type,
Int32Type,
};
- TexQSign = FunctionType::get(V4f32Type, ArgsQType);
+ TexQSign = FunctionType::get(V4f32Type, ArgsQType, /*isVarArg=*/false);
return false;
}
More information about the llvm-commits
mailing list