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 00414c3 commit 0bcc37cCopy full SHA for 0bcc37c
llvm/lib/Target/SPIRV/SPIRVMergeRegionExitTargets.cpp
@@ -87,12 +87,8 @@ class SPIRVMergeRegionExitTargets : public FunctionPass {
87
BasicBlock *RHSTarget =
88
BI->isConditional() ? BI->getSuccessor(1) : nullptr;
89
90
- Value *LHS = TargetToValue.count(LHSTarget) != 0
91
- ? TargetToValue.at(LHSTarget)
92
- : nullptr;
93
- Value *RHS = TargetToValue.count(RHSTarget) != 0
94
- ? TargetToValue.at(RHSTarget)
95
+ Value *LHS = TargetToValue.lookup(LHSTarget);
+ Value *RHS = TargetToValue.lookup(RHSTarget);
96
97
if (LHS == nullptr || RHS == nullptr)
98
return LHS == nullptr ? RHS : LHS;
0 commit comments