diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-12-16 09:36:16 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-12-16 09:36:16 +0000 |
commit | a602aec8696708d46d57a74546fa5996c51abd5b (patch) | |
tree | b92665c5c7b8d594fb98e7d1674549bb3dd311dc /include | |
parent | d916ce3c8e1c88352703db12b47862b1794c7dad (diff) | |
download | llvm-a602aec8696708d46d57a74546fa5996c51abd5b.tar.gz llvm-a602aec8696708d46d57a74546fa5996c51abd5b.tar.bz2 llvm-a602aec8696708d46d57a74546fa5996c51abd5b.tar.xz |
Make GCC happy by using makeAraryRef instead of the implicit conversion.
I have no idea why GCC can't cope with the implicit conversion and Clang
can, or whose bug it is. Grr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/VariadicFunction.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/ADT/VariadicFunction.h b/include/llvm/ADT/VariadicFunction.h index 08c9697ffc..00ae347dc7 100644 --- a/include/llvm/ADT/VariadicFunction.h +++ b/include/llvm/ADT/VariadicFunction.h @@ -114,7 +114,7 @@ class VariadicFunction { #define LLVM_DEFINE_OVERLOAD(N) \ ResultT operator()(LLVM_COMMA_JOIN ## N(const ArgT &A)) const { \ const ArgT *const Args[] = { LLVM_COMMA_JOIN ## N(&A) }; \ - return Func(Args); \ + return Func(makeArrayRef(Args)); \ } LLVM_DEFINE_OVERLOAD(1) LLVM_DEFINE_OVERLOAD(2) @@ -164,7 +164,7 @@ class VariadicFunction1 { #define LLVM_DEFINE_OVERLOAD(N) \ ResultT operator()(Param0T P0, LLVM_COMMA_JOIN ## N(const ArgT &A)) const { \ const ArgT *const Args[] = { LLVM_COMMA_JOIN ## N(&A) }; \ - return Func(P0, Args); \ + return Func(P0, makeArrayRef(Args)); \ } LLVM_DEFINE_OVERLOAD(1) LLVM_DEFINE_OVERLOAD(2) @@ -215,7 +215,7 @@ class VariadicFunction2 { ResultT operator()(Param0T P0, Param1T P1, \ LLVM_COMMA_JOIN ## N(const ArgT &A)) const { \ const ArgT *const Args[] = { LLVM_COMMA_JOIN ## N(&A) }; \ - return Func(P0, P1, Args); \ + return Func(P0, P1, makeAraryRef(Args)); \ } LLVM_DEFINE_OVERLOAD(1) LLVM_DEFINE_OVERLOAD(2) @@ -267,7 +267,7 @@ class VariadicFunction3 { ResultT operator()(Param0T P0, Param1T P1, Param2T P2, \ LLVM_COMMA_JOIN ## N(const ArgT &A)) const { \ const ArgT *const Args[] = { LLVM_COMMA_JOIN ## N(&A) }; \ - return Func(P0, P1, P2, Args); \ + return Func(P0, P1, P2, makeArrayRef(Args)); \ } LLVM_DEFINE_OVERLOAD(1) LLVM_DEFINE_OVERLOAD(2) |