We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed67292 commit 0d73cd3Copy full SHA for 0d73cd3
1 file changed
lib/PhasarLLVM/ControlFlow/LLVMBasedCFG.cpp
@@ -135,7 +135,11 @@ LLVMBasedCFG::getStartPointsOf(const llvm::Function *Fun) const {
135
return {};
136
}
137
if (!Fun->isDeclaration()) {
138
- return {&Fun->front().front()};
+ auto *EntryInst = &Fun->front().front();
139
+ if (IgnoreDbgInstructions && EntryInst->isDebugOrPseudoInst()) {
140
+ return {EntryInst->getNextNonDebugInstruction()};
141
+ }
142
+ return {EntryInst};
143
} else {
144
LOG_IF_ENABLE(BOOST_LOG_SEV(lg::get(), DEBUG)
145
<< "Could not get starting points of '"
0 commit comments