Skip to content

Commit

Permalink
Replace llvm::makeArrayRef with ArrayRef constructors.
Browse files Browse the repository at this point in the history
LLVM upstream is about to deprecate and remove llvm::makeArrayRef.

PiperOrigin-RevId: 501117062
  • Loading branch information
gribozavr authored and tensorflower-gardener committed Jan 11, 2023
1 parent a329237 commit bd22834
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ struct CustomCallOpInterface

// Take the result buffers and fill in the token input in the gaps.
auto bufferResults = llvm::to_vector(llvm::map_range(
makeArrayRef(bufferArgs).slice(numArguments),
llvm::ArrayRef(bufferArgs).slice(numArguments),
[&](Value buffer) { return buffer ? buffer : tokenArgument; }));

if (tokenArgument) {
Expand Down

0 comments on commit bd22834

Please sign in to comment.