Skip to content

Commit 61a859b

Browse files
committed
Use llvm::copy instead of append_range to work around MacOS build failure
1 parent 4dc32df commit 61a859b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/DecoderEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2409,7 +2409,7 @@ static void collectHwModesReferencedForEncodings(
24092409
// FIXME: Can't do `HwModeIDs.assign(BV.set_bits_begin(), BV.set_bits_end())`
24102410
// because const_set_bits_iterator_impl is not copy-assignable.
24112411
// This breaks some MacOS builds.
2412-
append_range(HwModeIDs, BV.set_bits());
2412+
llvm::copy(BV.set_bits(), std::back_inserter(HwModeIDs));
24132413
}
24142414

24152415
static void

0 commit comments

Comments
 (0)