Reply to http://reviews.llvm.org/D18341
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM anyway
lib/Transforms/Instrumentation/SanitizerCoverage.cpp | ||
---|---|---|
319 | Reverse logic is still better :-) static bool isNotFullDominator(const BasicBlock *BB, const DominatorTree *DT) { for (const BasicBlock *SUCC : make_range(succ_begin(BB), succ_end(BB))) { if (!DT->dominates(BB, SUCC)) return true; } return false; } | |
350 | return isNotFullDominator() && isNotFullPostDominator(); |
Reverse logic is still better :-)
static bool isNotFullDominator(const BasicBlock *BB, const DominatorTree *DT) {
}