summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-08-20 19:36:05 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-08-20 19:36:05 +0000
commit8968e6d1b02543d12e312f1be6edd152b89de584 (patch)
treee0a9f8a8404b21f5f96a52db2fd9c2ac71349303 /llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
parentd750723d291dc6cd9295b7b0643b71d8cd9fbab2 (diff)
downloadbcm5719-llvm-8968e6d1b02543d12e312f1be6edd152b89de584.tar.gz
bcm5719-llvm-8968e6d1b02543d12e312f1be6edd152b89de584.zip
Fix null reference creation in ScheduleDAGInstrs constructor call.
Both MachineLoopInfo and MachineDominatorTree may be null in ScheduleDAGMI constructor call. It is undefined behavior to take references to these values. This bug is reported by UBSan. llvm-svn: 216118
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp b/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
index 4c040bf7e88..97c626fdf7a 100644
--- a/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
@@ -145,7 +145,7 @@ void VLIWMachineScheduler::schedule() {
<< "********** MI Converging Scheduling VLIW BB#" << BB->getNumber()
<< " " << BB->getName()
<< " in_func " << BB->getParent()->getFunction()->getName()
- << " at loop depth " << MLI.getLoopDepth(BB)
+ << " at loop depth " << MLI->getLoopDepth(BB)
<< " \n");
buildDAGWithRegPressure();
OpenPOWER on IntegriCloud