diff options
Diffstat (limited to 'llvm/tools/llvm-extract/llvm-extract.cpp')
-rw-r--r-- | llvm/tools/llvm-extract/llvm-extract.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/llvm-extract/llvm-extract.cpp b/llvm/tools/llvm-extract/llvm-extract.cpp index 4ee644f..5fc9a31 100644 --- a/llvm/tools/llvm-extract/llvm-extract.cpp +++ b/llvm/tools/llvm-extract/llvm-extract.cpp @@ -297,9 +297,8 @@ int main(int argc, char **argv) { Function *CF = CB->getCalledFunction(); if (!CF) continue; - if (CF->isDeclaration() || GVs.count(CF)) + if (CF->isDeclaration() || !GVs.insert(CF)) continue; - GVs.insert(CF); Workqueue.push_back(CF); } } |