[GISel]: Missed passing in a parameter to addUsesFromArgs
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Thu, 27 Jul 2017 02:15:34 +0000 (02:15 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Thu, 27 Jul 2017 02:15:34 +0000 (02:15 +0000)
llvm-svn: 309243

llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h

index 9b59849..40a24e4 100644 (file)
@@ -82,7 +82,7 @@ class MachineIRBuilder {
   template<typename UseArgTy, typename ... UseArgsTy>
   void addUsesFromArgs(MachineInstrBuilder &MIB, UseArgTy &&Arg1, UseArgsTy &&... Args) {
     addUseFromArg(MIB, Arg1);
-    addUsesFromArgs(std::forward<UseArgsTy>(Args)...);
+    addUsesFromArgs(MIB, std::forward<UseArgsTy>(Args)...);
   }
 public:
   /// Getter for the function we currently build.