summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2017-10-03 12:28:28 +0000
committerOliver Stannard <oliver.stannard@arm.com>2017-10-03 12:28:28 +0000
commit5daee987fd6ba736f4857ee4b298c820f74e608b (patch)
tree2f585fd6a4521dee8f65d57491b641bbe8a54e85 /llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
parentfb7f8befec7c54177eb7216c464d4946e1580558 (diff)
downloadbcm5719-llvm-5daee987fd6ba736f4857ee4b298c820f74e608b.tar.gz
bcm5719-llvm-5daee987fd6ba736f4857ee4b298c820f74e608b.zip
[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
Diffstat (limited to 'llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index f2925f176a1..c949d8954d5 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -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,
OpenPOWER on IntegriCloud