[llvm-commits] [PATCH] In hexagon convertToHardwareLoop, don't deref end() iterator

Brendon Cahoon bcahoon at codeaurora.org
Fri Dec 7 12:40:18 PST 2012


LGTM.

Thanks,
Brendon

--
Qualcomm Innovation Center, Inc is a member of Code Aurora Forum, hosted by
The Linux Foundation


-----Original Message-----
From: llvm-commits-bounces at cs.uiuc.edu
[mailto:llvm-commits-bounces at cs.uiuc.edu] On Behalf Of Matthew Curtis
Sent: Friday, December 07, 2012 7:55 AM
To: llvm-commits at cs.uiuc.edu
Subject: [llvm-commits] [PATCH] 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

Matthew Curtis

--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by
The Linux Foundation





More information about the llvm-commits mailing list