[llvm] r256694 - WinEHPrepare.cpp: Suppress a warning for -Asserts. [-Wunused-variable]
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 2 17:41:03 PST 2016
Author: chapuni
Date: Sat Jan 2 19:41:00 2016
New Revision: 256694
URL: http://llvm.org/viewvc/llvm-project?rev=256694&view=rev
Log:
WinEHPrepare.cpp: Suppress a warning for -Asserts. [-Wunused-variable]
Modified:
llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
Modified: llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/WinEHPrepare.cpp?rev=256694&r1=256693&r2=256694&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/WinEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/WinEHPrepare.cpp Sat Jan 2 19:41:00 2016
@@ -906,10 +906,8 @@ void WinEHPrepare::verifyPreparedFunclet
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!");
}
}
More information about the llvm-commits
mailing list