We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c52293e commit 55f64baCopy full SHA for 55f64ba
1 file changed
lib/PhasarLLVM/TaintConfig/TaintConfig.cpp
@@ -526,7 +526,8 @@ TaintConfig::makeInitialSeeds() const {
526
for (const auto *SourceValue : SourceValues) {
527
if (const auto *Inst = llvm::dyn_cast<llvm::Instruction>(SourceValue)) {
528
InitialSeeds[Inst].insert(Inst);
529
- } else if (const auto *Arg = llvm::dyn_cast<llvm::Argument>(SourceValue)) {
+ } else if (const auto *Arg = llvm::dyn_cast<llvm::Argument>(SourceValue);
530
+ Arg && !Arg->getParent()->isDeclaration()) {
531
const auto *FunFirstInst = &Arg->getParent()->front().front();
532
InitialSeeds[FunFirstInst].insert(Arg);
533
}
0 commit comments