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 c28f613 commit 4152ef9Copy full SHA for 4152ef9
llvm/lib/Analysis/DDG.cpp
@@ -241,9 +241,10 @@ bool DataDependenceGraph::addNode(DDGNode &N) {
241
}
242
243
const PiBlockDDGNode *DataDependenceGraph::getPiBlock(const NodeType &N) const {
244
- if (!PiBlockMap.contains(&N))
+ auto It = PiBlockMap.find(&N);
245
+ if (It == PiBlockMap.end())
246
return nullptr;
- auto *Pi = PiBlockMap.find(&N)->second;
247
+ auto *Pi = It->second;
248
assert(!PiBlockMap.contains(Pi) && "Nested pi-blocks detected.");
249
return Pi;
250
0 commit comments