summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRParser/MIParser.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-08-18 22:57:36 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-08-18 22:57:36 +0000
commit607efb6c7e39ea5981f4c56fc89d489398e8234c (patch)
treecd33b6a6b6795d239ad0ba27a1ed2610a75d81cd /llvm/lib/CodeGen/MIRParser/MIParser.cpp
parentf3630113cd93f3b25b48d892058025213f1faa93 (diff)
downloadbcm5719-llvm-607efb6c7e39ea5981f4c56fc89d489398e8234c.tar.gz
bcm5719-llvm-607efb6c7e39ea5981f4c56fc89d489398e8234c.zip
MIR Parser: Return true on error when parsing standalone registers.
llvm-svn: 245384
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIParser.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MIParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
index 20581a1692f..3ec039285b3 100644
--- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp
+++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
@@ -647,7 +647,7 @@ bool MIParser::parseStandaloneNamedRegister(unsigned &Reg) {
if (Token.isNot(MIToken::NamedRegister))
return error("expected a named register");
if (parseRegister(Reg))
- return 0;
+ return true;
lex();
if (Token.isNot(MIToken::Eof))
return error("expected end of string after the register reference");
@@ -659,7 +659,7 @@ bool MIParser::parseStandaloneVirtualRegister(unsigned &Reg) {
if (Token.isNot(MIToken::VirtualRegister))
return error("expected a virtual register");
if (parseRegister(Reg))
- return 0;
+ return true;
lex();
if (Token.isNot(MIToken::Eof))
return error("expected end of string after the register reference");
OpenPOWER on IntegriCloud