summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2018-10-10 16:16:43 +0000
committerGuillaume Chatelet <gchatelet@google.com>2018-10-10 16:16:43 +0000
commitf33b60258e412d80f6d9832feb1d32c8af1bcb3a (patch)
treee897d85e7aa80d50552dce8553359e91af58c5c6 /llvm/tools
parentcc7e74753ae2243f00971e3cfed7d7ee7a0136ed (diff)
downloadbcm5719-llvm-f33b60258e412d80f6d9832feb1d32c8af1bcb3a.tar.gz
bcm5719-llvm-f33b60258e412d80f6d9832feb1d32c8af1bcb3a.zip
[llvm-exegesis] Fix always true assert
llvm-svn: 344151
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-exegesis/lib/MCInstrDescView.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/MCInstrDescView.h b/llvm/tools/llvm-exegesis/lib/MCInstrDescView.h
index 265476ae125..6910538a31f 100644
--- a/llvm/tools/llvm-exegesis/lib/MCInstrDescView.h
+++ b/llvm/tools/llvm-exegesis/lib/MCInstrDescView.h
@@ -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.
OpenPOWER on IntegriCloud