Skip to content

Commit 41a94f2

Browse files
Address a comment.
1 parent 3985d8f commit 41a94f2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/include/llvm/Support/ReverseIteration.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
namespace llvm {
88

99
template <class T = void *> constexpr bool shouldReverseIterate() {
10-
if constexpr (LLVM_ENABLE_REVERSE_ITERATION)
11-
return detail::IsPointerLike<T>::value;
12-
else
13-
return false;
10+
#if LLVM_ENABLE_REVERSE_ITERATION
11+
return detail::IsPointerLike<T>::value;
12+
#else
13+
return false;
14+
#endif
1415
}
1516

1617
} // namespace llvm

0 commit comments

Comments
 (0)