[llvm] r341264 - [Hexagon] Don't access non-existent instructions
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 31 15:10:04 PDT 2018
Author: kparzysz
Date: Fri Aug 31 15:10:04 2018
New Revision: 341264
URL: http://llvm.org/viewvc/llvm-project?rev=341264&view=rev
Log:
[Hexagon] Don't access non-existent instructions
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp?rev=341264&r1=341263&r2=341264&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonFrameLowering.cpp Fri Aug 31 15:10:04 2018
@@ -1266,7 +1266,7 @@ bool HexagonFrameLowering::insertCSRRest
// Call spill function.
DebugLoc DL = MI != MBB.end() ? MI->getDebugLoc()
- : MBB.getLastNonDebugInstr()->getDebugLoc();
+ : MBB.findDebugLoc(MBB.end());
MachineInstr *DeallocCall = nullptr;
if (HasTC) {
More information about the llvm-commits
mailing list