Add tests for the 'x' operation.
[oota-llvm.git] / utils / TableGen / CodeEmitterGen.cpp
index bcca15cd57e0292f5a651531bba2d81e53a43c5c..c94d384901f0c21d02081448c1df5c9f3fe30a23 100644 (file)
 //===----------------------------------------------------------------------===//
 
 #include "CodeGenTarget.h"
-#include "llvm/TableGen/Record.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/TableGen/Record.h"
 #include "llvm/TableGen/TableGenBackend.h"
 #include <map>
 #include <string>
@@ -140,9 +140,7 @@ AddCodeToMergeInOperand(Record *R, BitsInit *BI, const std::string &VarName,
     while (NumberedOp < NumberOps &&
            CGI.Operands.isFlatOperandNotEmitted(NumberedOp))
       ++NumberedOp;
-    // If this operand has not been found, ignore it.
-    if (NumberedOp >= NumberOps)
-      return;
+
     OpIdx = NumberedOp++;
   }