aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
diff options
context:
space:
mode:
authorDavid Stenberg <david.stenberg@ericsson.com>2019-08-19 12:41:22 +0000
committerDavid Stenberg <david.stenberg@ericsson.com>2019-08-19 12:41:22 +0000
commit88df53e6eaf355271e90fa928df53ab6ea244a69 (patch)
tree21cbe4e198bd8ce444d4a2353c5cafbe7e4a1257 /llvm/lib/CodeGen/MIRParser/MIRParser.cpp
parent0f9b5f86f1cd06c4a7fc9679d44f334796be653f (diff)
downloadllvm-88df53e6eaf355271e90fa928df53ab6ea244a69.zip
llvm-88df53e6eaf355271e90fa928df53ab6ea244a69.tar.gz
llvm-88df53e6eaf355271e90fa928df53ab6ea244a69.tar.bz2
[DebugInfo] Allow bundled calls in the MIR's call site info
Summary: Extend the MIR parser and writer so that the call site information can refer to calls that are bundled. Reviewers: aprantl, asowda, NikolaPrica, djtodoro, ivanbaev, vsk Reviewed By: aprantl Subscribers: arsenm, hiraditya, llvm-commits Tags: #debug-info, #llvm Differential Revision: https://reviews.llvm.org/D66145 llvm-svn: 369256
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIRParser.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MIRParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
index f3dcb9c..48ec0b2 100644
--- a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
+++ b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
@@ -357,8 +357,8 @@ bool MIRParserImpl::initializeCallSiteInfo(
Twine(" call instruction offset out of range.") +
"Unable to reference instruction at bb: " +
Twine(MILoc.BlockNum) + " at offset:" + Twine(MILoc.Offset));
- auto CallI = std::next(CallB->begin(), MILoc.Offset);
- if (!CallI->isCall())
+ auto CallI = std::next(CallB->instr_begin(), MILoc.Offset);
+ if (!CallI->isCall(MachineInstr::IgnoreBundle))
return error(Twine(MF.getName()) +
Twine(" call site info should reference call "
"instruction. Instruction at bb:") +