summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2018-02-19 20:50:09 +0000
committerBrian Gesiak <modocache@gmail.com>2018-02-19 20:50:09 +0000
commit58434db0980466ae4f9403b9e165144d1da094d4 (patch)
tree223fc76e2e3581d268fc8398d6e9af570358a9fe /llvm
parent6c85992c6da7ee88265e4ff7f69776b520d54891 (diff)
downloadbcm5719-llvm-58434db0980466ae4f9403b9e165144d1da094d4.tar.gz
bcm5719-llvm-58434db0980466ae4f9403b9e165144d1da094d4.zip
[Coroutines] Move debug statement before assert
Summary: Move a debug statement to above where an assertion is hit, so that the debug statement can be inspected before a stack trace. Test Plan: `check-llvm` llvm-svn: 325529
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/Coroutines/CoroFrame.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
index 6334256bf03..0df5c12252b 100644
--- a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
@@ -739,6 +739,8 @@ static void moveSpillUsesAfterCoroBegin(Function &F, SpillInfo const &Spills,
for (User *U : CurrentValue->users()) {
Instruction *I = cast<Instruction>(U);
if (!DT.dominates(CoroBegin, I)) {
+ DEBUG(dbgs() << "will move: " << *I << "\n");
+
// TODO: Make this more robust. Currently if we run into a situation
// where simple instruction move won't work we panic and
// report_fatal_error.
@@ -748,7 +750,6 @@ static void moveSpillUsesAfterCoroBegin(Function &F, SpillInfo const &Spills,
" dominated by CoroBegin");
}
- DEBUG(dbgs() << "will move: " << *I << "\n");
NeedsMoving.push_back(I);
}
}
OpenPOWER on IntegriCloud