diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-06 19:22:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-06 19:22:17 +0000 |
commit | 79ed3f77e8b87615b80054ca6e4e3ba5e07445bd (patch) | |
tree | 858cfb1799b738f2844e27c78b21d4349def3e86 /lib/Target/ARM/AsmParser/ARMAsmParser.cpp | |
parent | 702f2d42bb136f9f67e4ffaecb5f79b2369340ad (diff) |
change MatchInstructionImpl to return an enum instead of bool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r-- | lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index fef8eb0810..8507070fc6 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -83,7 +83,7 @@ private: bool MatchInstruction(SMLoc IDLoc, const SmallVectorImpl<MCParsedAsmOperand*> &Operands, MCInst &Inst) { - if (!MatchInstructionImpl(Operands, Inst)) + if (MatchInstructionImpl(Operands, Inst) == Match_Success) return false; // FIXME: We should give nicer diagnostics about the exact failure. |