aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/MC/MCInst.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h
index d6ef7b4c33..5d34ccec72 100644
--- a/include/llvm/MC/MCInst.h
+++ b/include/llvm/MC/MCInst.h
@@ -144,6 +144,8 @@ public:
Operands.push_back(Op);
}
+ void clear() { Operands.clear(); }
+
void print(raw_ostream &OS, const MCAsmInfo *MAI) const;
void dump() const;