| 258 | } |
| 259 | |
| 260 | bool DefAnalyzer::isInitializedLocalVariable(const RDNode &Node) const { |
| 261 | auto &IR = Node.getTarget().getIR(); |
| 262 | if (!llvm::isa<llvm::AllocaInst>(&IR)) |
| 263 | return false; |
| 264 | |
| 265 | auto D = Node.getDefinition(); |
| 266 | if (!D.first) |
| 267 | return false; |
| 268 | |
| 269 | auto *ADN = ASTMap->getASTDefNode(*D.first, D.second); |
| 270 | if (!ADN || !ADN->getAssigned()) |
| 271 | return false; |
| 272 | |
| 273 | return true; |
| 274 | } |
| 275 | |
| 276 | bool DefAnalyzer::isInvalidRDNode(ASTIRMap &Map, const RDNode &Node) const { |
| 277 | auto D = Node.getDefinition(); |
nothing calls this directly
no test coverage detected