diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-04-22 07:16:56 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-04-22 07:16:56 +0000 |
commit | f93a899fe749e866de9409eb41b33fe6e9b6f1dd (patch) | |
tree | 063806763985f52793e9cf578f6ce0c831be47bf | |
parent | ac662fd3e8ac791763b049166c413eccd21cf872 (diff) |
Inline a variable that's used only in an assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155306 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp b/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp index ef3688138c..47384cd533 100644 --- a/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp +++ b/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp @@ -113,24 +113,21 @@ void HexagonInstPrinter::printFrameIndexOperand void HexagonInstPrinter::printGlobalOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O) const { - const MCOperand& MO = MI->getOperand(OpNo); - assert(MO.isExpr() && "Expecting expression"); + assert(MI->getOperand(OpNo).isExpr() && "Expecting expression"); printOperand(MI, OpNo, O); } void HexagonInstPrinter::printJumpTable(const MCInst *MI, unsigned OpNo, raw_ostream &O) const { - const MCOperand& MO = MI->getOperand(OpNo); - assert(MO.isExpr() && "Expecting expression"); + assert(MI->getOperand(OpNo).isExpr() && "Expecting expression"); printOperand(MI, OpNo, O); } void HexagonInstPrinter::printConstantPool(const MCInst *MI, unsigned OpNo, raw_ostream &O) const { - const MCOperand& MO = MI->getOperand(OpNo); - assert(MO.isExpr() && "Expecting expression"); + assert(MI->getOperand(OpNo).isExpr() && "Expecting expression"); printOperand(MI, OpNo, O); } |