aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2022-04-09 09:26:58 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2022-04-09 10:07:58 +0100
commitf133b817a25f5ce27fc4bebf20efb59f18f3fb33 (patch)
treef0033c3d2197832d76e837a3989093924de636d4
parent7c5d5edec8abb7389b16f5a92107f2d8d4be94e1 (diff)
downloadllvm-f133b817a25f5ce27fc4bebf20efb59f18f3fb33.zip
llvm-f133b817a25f5ce27fc4bebf20efb59f18f3fb33.tar.gz
llvm-f133b817a25f5ce27fc4bebf20efb59f18f3fb33.tar.bz2
[AArch64] validateTargetOperandClass - early out from MCK_MPR case. NFCI.
If it didn't match a za register, there's nothing we can do. Fixes static analyzer uninitialized variable warning.
-rw-r--r--llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
index 65dda44..c0ca07f 100644
--- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -6883,7 +6883,7 @@ unsigned AArch64AsmParser::validateTargetOperandClass(MCParsedAsmOperand &AsmOp,
// as a literal token.
if (Op.isTokenEqual("za"))
return Match_Success;
- break;
+ return Match_InvalidOperand;
}
if (!Op.isImm())
return Match_InvalidOperand;