TableGen: Initialize ErrorInfo to ~0ULL in the MatchInstructionImpl
authorTom Stellard <thomas.stellard@amd.com>
Thu, 5 Mar 2015 19:46:55 +0000 (19:46 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 5 Mar 2015 19:46:55 +0000 (19:46 +0000)
This is what all the targets check for and is consistent with the
initialized value of MissingFeatures, which is sometimes assinged
to ErrorInfo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231397 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmMatcherEmitter.cpp

index ac95b1459f390e9c05fc67fe8c10b700bb5fad0e..159bc23fbff1c2366e0c0d28292369fc1b96f39f 100644 (file)
@@ -2887,7 +2887,7 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
   OS << "  uint64_t MissingFeatures = ~0ULL;\n";
   OS << "  // Set ErrorInfo to the operand that mismatches if it is\n";
   OS << "  // wrong for all instances of the instruction.\n";
-  OS << "  ErrorInfo = ~0U;\n";
+  OS << "  ErrorInfo = ~0ULL;\n";
 
   // Emit code to search the table.
   OS << "  // Find the appropriate table for this asm variant.\n";