summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2016-01-03 01:41:00 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2016-01-03 01:41:00 +0000
commitded575e4ebfdea357c02d22f9f255d6e20eb0c3c (patch)
tree53a3ae88a15c92995adc8bfdbc3728298118acea /llvm/lib
parent147747ab0bbd90dc6c6928da393ff4ebdd5701c6 (diff)
downloadbcm5719-llvm-ded575e4ebfdea357c02d22f9f255d6e20eb0c3c.tar.gz
bcm5719-llvm-ded575e4ebfdea357c02d22f9f255d6e20eb0c3c.zip
WinEHPrepare.cpp: Suppress a warning for -Asserts. [-Wunused-variable]
llvm-svn: 256694
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/WinEHPrepare.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp
index 3d1c3803194..27043b577e2 100644
--- a/llvm/lib/CodeGen/WinEHPrepare.cpp
+++ b/llvm/lib/CodeGen/WinEHPrepare.cpp
@@ -906,10 +906,8 @@ void WinEHPrepare::verifyPreparedFunclets(Function &F) {
report_fatal_error("Uncolored BB!");
if (NumColors > 1)
report_fatal_error("Multicolor BB!");
- if (!DisableDemotion) {
- bool EHPadHasPHI = BB.isEHPad() && isa<PHINode>(BB.begin());
- assert(!EHPadHasPHI && "EH Pad still has a PHI!");
- }
+ assert((DisableDemotion || !(BB.isEHPad() && isa<PHINode>(BB.begin()))) &&
+ "EH Pad still has a PHI!");
}
}
OpenPOWER on IntegriCloud