Skip to content

Commit 7f71fa9

Browse files
authored
Extend GCC workaround to GCC < 8.4 for llvm::iterator_range ctor (#82643)
GCC SFINAE error with decltype was fixed in commit ac5e28911abdfb8d9bf6bea980223e199bbcf28d which made it into GCC 8.4. Therefore adjust GCC version test accordingly.
1 parent 91e9e31 commit 7f71fa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/ADT/iterator_range.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class iterator_range {
4343
IteratorT begin_iterator, end_iterator;
4444

4545
public:
46-
#if __GNUC__ == 7
47-
// Be careful no to break gcc-7 on the mlir target.
46+
#if __GNUC__ == 7 || (__GNUC__ == 8 && __GNUC_MINOR__ < 4)
47+
// Be careful no to break gcc-7 and gcc-8 < 8.4 on the mlir target.
4848
// See https://github.com/llvm/llvm-project/issues/63843
4949
template <typename Container>
5050
#else

0 commit comments

Comments
 (0)