[llvm] r279525 - Fix windows build failure

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 23 09:00:54 PDT 2016


Author: davidxl
Date: Tue Aug 23 11:00:54 2016
New Revision: 279525

URL: http://llvm.org/viewvc/llvm-project?rev=279525&view=rev
Log:
Fix windows build failure

Modified:
    llvm/trunk/include/llvm/IR/Instruction.h

Modified: llvm/trunk/include/llvm/IR/Instruction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Instruction.h?rev=279525&r1=279524&r2=279525&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Instruction.h (original)
+++ llvm/trunk/include/llvm/IR/Instruction.h Tue Aug 23 11:00:54 2016
@@ -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




More information about the llvm-commits mailing list