From: Chris Lattner Date: Thu, 27 May 2004 06:43:37 +0000 (+0000) Subject: Right, globals aren't values yet.. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b04cb7daf5a9d7b57450b0612e699df49fcb7cbe;p=oota-llvm.git Right, globals aren't values yet.. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13822 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/analyze/AnalysisWrappers.cpp b/tools/analyze/AnalysisWrappers.cpp index 8e6ee2237cd..7a811ce7d73 100644 --- a/tools/analyze/AnalysisWrappers.cpp +++ b/tools/analyze/AnalysisWrappers.cpp @@ -58,7 +58,7 @@ namespace { if (CS.getInstruction()) { for (CallSite::arg_iterator AI = CS.arg_begin(), E = CS.arg_end(); AI != E; ++AI) - if (isa(*AI)) { + if (isa(*AI) || isa(*AI)) { if (!PrintedFn) { std::cerr << "Function '" << I->getName() << "':\n"; PrintedFn = true; diff --git a/tools/opt/AnalysisWrappers.cpp b/tools/opt/AnalysisWrappers.cpp index 8e6ee2237cd..7a811ce7d73 100644 --- a/tools/opt/AnalysisWrappers.cpp +++ b/tools/opt/AnalysisWrappers.cpp @@ -58,7 +58,7 @@ namespace { if (CS.getInstruction()) { for (CallSite::arg_iterator AI = CS.arg_begin(), E = CS.arg_end(); AI != E; ++AI) - if (isa(*AI)) { + if (isa(*AI) || isa(*AI)) { if (!PrintedFn) { std::cerr << "Function '" << I->getName() << "':\n"; PrintedFn = true;