We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a91cf86 commit 74c8e78Copy full SHA for 74c8e78
third_party/intel/lib/LLVMIR/LLVMIRFreezeMaskedDivRem.cpp
@@ -8,10 +8,8 @@ using namespace llvm;
8
9
static bool processBasicBlock(BasicBlock &BB, PHINode *PhiNode) {
10
if (!any_of(PhiNode->incoming_values(), [](Use &U) {
11
- if (Constant *C = dyn_cast<Constant>(&U)) {
12
- return C->isNullValue();
13
- }
14
- return false;
+ Constant *C = dyn_cast<Constant>(&U);
+ return C && C->isNullValue();
15
})) {
16
return false;
17
}
0 commit comments