diff options
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/IR/Instruction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/Instruction.h b/llvm/include/llvm/IR/Instruction.h index 8305a707d70..027d9f3eaf5 100644 --- a/llvm/include/llvm/IR/Instruction.h +++ b/llvm/include/llvm/IR/Instruction.h @@ -201,7 +201,8 @@ public: /// Copy metadata from \p SrcInst to this instruction. \p WL, if not empty, /// specifies the list of meta data that needs to be copied. If \p WL is /// empty, all meta data will be copied. - void copyMetadata(const Instruction &SrcInst, ArrayRef<unsigned> WL = {}); + void copyMetadata(const Instruction &SrcInst, + ArrayRef<unsigned> WL = ArrayRef<unsigned>()); /// If the instruction has "branch_weights" MD_prof metadata and the MDNode /// has three operands (including name string), swap the order of the |