[llvm] r231397 - TableGen: Initialize ErrorInfo to ~0ULL in the MatchInstructionImpl
Tom Stellard
thomas.stellard at amd.com
Thu Mar 5 11:46:55 PST 2015
Author: tstellar
Date: Thu Mar 5 13:46:55 2015
New Revision: 231397
URL: http://llvm.org/viewvc/llvm-project?rev=231397&view=rev
Log:
TableGen: Initialize ErrorInfo to ~0ULL in the MatchInstructionImpl
This is what all the targets check for and is consistent with the
initialized value of MissingFeatures, which is sometimes assinged
to ErrorInfo.
Modified:
llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp?rev=231397&r1=231396&r2=231397&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp Thu Mar 5 13:46:55 2015
@@ -2887,7 +2887,7 @@ void AsmMatcherEmitter::run(raw_ostream
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";
More information about the llvm-commits
mailing list