[llvm] r344151 - [llvm-exegesis] Fix always true assert
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 10 09:16:44 PDT 2018
Author: gchatelet
Date: Wed Oct 10 09:16:43 2018
New Revision: 344151
URL: http://llvm.org/viewvc/llvm-project?rev=344151&view=rev
Log:
[llvm-exegesis] Fix always true assert
Modified:
llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.h
Modified: llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.h?rev=344151&r1=344150&r2=344151&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.h (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.h Wed Oct 10 09:16:43 2018
@@ -81,7 +81,7 @@ struct Operand {
const llvm::MCOperandInfo &getExplicitOperandInfo() const;
// Please use the accessors above and not the following fields.
- unsigned Index = 0;
+ int Index = -1;
bool IsDef = false;
const RegisterAliasingTracker *Tracker = nullptr; // Set for Register Op.
const llvm::MCOperandInfo *Info = nullptr; // Set for Explicit Op.
More information about the llvm-commits
mailing list