diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-05-20 15:58:43 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-05-20 15:58:43 +0000 |
commit | d54bf7ceefd2d6ba89fd800700a5ff201861861c (patch) | |
tree | bcf2dad95905d5925c3cd381ad0afb876810e3ff /lib/Target/R600 | |
parent | 4f8d90df4518f1ebcc798fdbf01358a1a45adca6 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600')
-rw-r--r-- | lib/Target/R600/R600TextureIntrinsicsReplacer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp b/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp index 938bd51f742..518a4766aec 100644 --- a/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp +++ b/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp @@ -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; } |