"mask" operand removed from shufflevector: convert 'llvm::ArrayRef<int>' to 'const llvm::Value*'

Hello, I am very new to LLVM. I am trying to upgrade some code to LLVM 11.0.0.

So far so good, except for this change: Remove “mask” operand from shufflevector (D72467)

Simply changing “getMask()” into “getShuffleMask()” caused a compilation error: 'const llvm::Value* expected but ‘llvm::ArrayRef’ provided.

The simplest solution for me would be to “cast” one type into the other (i.e. a Value then representing an Array of Values). Can this be done? Any other suggestions on how to deal with the removal of getMask()?