diff options
author | Matthew Curtis <mcurtis@codeaurora.org> | 2012-12-07 21:03:15 +0000 |
---|---|---|
committer | Matthew Curtis <mcurtis@codeaurora.org> | 2012-12-07 21:03:15 +0000 |
commit | ade50dc6c7d18ba2e47aab7e535c709de76fe152 (patch) | |
tree | 5818f3fcb468e1a73c315d2b11e637e996edbbf0 /test/CodeGen/Hexagon | |
parent | 6cd738f33934a93b114d7dd9e4291f87f445c5c4 (diff) |
In hexagon convertToHardwareLoop, don't deref end() iterator
In particular, check if MachineBasicBlock::iterator is end() before
using it to call getDebugLoc();
See also this thread on llvm-commits:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20121112/155914.html
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Hexagon')
-rw-r--r-- | test/CodeGen/Hexagon/postinc-load.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/Hexagon/postinc-load.ll b/test/CodeGen/Hexagon/postinc-load.ll index 4b5ea67090..855a347d74 100644 --- a/test/CodeGen/Hexagon/postinc-load.ll +++ b/test/CodeGen/Hexagon/postinc-load.ll @@ -1,4 +1,4 @@ -; RUN: true || llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s +; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s ; Check that post-increment load instructions are being generated. ; CHECK: r{{[0-9]+}}{{ *}}={{ *}}memw(r{{[0-9]+}}{{ *}}++{{ *}}#4{{ *}}) |