1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

[ARM, Asm] Remove dead code causing MSan failure.

r314779 caused ErrorInfo to be red uninitialised, but also made this code dead,
so it can just be removed.

llvm-svn: 314791
This commit is contained in:
Oliver Stannard 2017-10-03 12:28:28 +00:00
parent 1ab89602fb
commit af934d6e94

View File

@ -9028,13 +9028,6 @@ bool ARMAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
MatchResult = MatchInstruction(Operands, Inst, NearMisses, MatchingInlineAsm,
PendConditionalInstruction, Out);
SMLoc ErrorLoc;
if (ErrorInfo < Operands.size()) {
ErrorLoc = ((ARMOperand &)*Operands[ErrorInfo]).getStartLoc();
if (ErrorLoc == SMLoc())
ErrorLoc = IDLoc;
}
switch (MatchResult) {
case Match_Success:
// Context sensitive operand constraints aren't handled by the matcher,