Right, globals aren't values yet..
authorChris Lattner <sabre@nondot.org>
Thu, 27 May 2004 06:43:37 +0000 (06:43 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 27 May 2004 06:43:37 +0000 (06:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13822 91177308-0d34-0410-b5e6-96231b3b80d8

tools/analyze/AnalysisWrappers.cpp
tools/opt/AnalysisWrappers.cpp

index 8e6ee2237cdea43ff68ee87d6d7a9b730ad9211e..7a811ce7d733d2ed22e397514b9f73545ce700ee 100644 (file)
@@ -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<Constant>(*AI)) {
+                  if (isa<Constant>(*AI) || isa<GlobalValue>(*AI)) {
                     if (!PrintedFn) {
                       std::cerr << "Function '" << I->getName() << "':\n";
                       PrintedFn = true;
index 8e6ee2237cdea43ff68ee87d6d7a9b730ad9211e..7a811ce7d733d2ed22e397514b9f73545ce700ee 100644 (file)
@@ -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<Constant>(*AI)) {
+                  if (isa<Constant>(*AI) || isa<GlobalValue>(*AI)) {
                     if (!PrintedFn) {
                       std::cerr << "Function '" << I->getName() << "':\n";
                       PrintedFn = true;