bug 122:
authorReid Spencer <rspencer@reidspencer.com>
Sun, 18 Jul 2004 00:44:14 +0000 (00:44 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 18 Jul 2004 00:44:14 +0000 (00:44 +0000)
- Minimize redundant isa<GlobalValue> usage

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14952 91177308-0d34-0410-b5e6-96231b3b80d8

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

index f48d5afe297db2ef8528d210527f78c915aae21f..7cd0ba0723ea030ff5f62d70e2f5a9c327a589c3 100644 (file)
@@ -59,7 +59,7 @@ namespace {
               if (CS.getInstruction()) {
                 for (CallSite::arg_iterator AI = CS.arg_begin(),
                        E = CS.arg_end(); AI != E; ++AI)
-                  if (isa<Constant>(*AI) || isa<GlobalValue>(*AI)) {
+                  if (isa<Constant>(*AI)) {
                     if (!PrintedFn) {
                       std::cerr << "Function '" << I->getName() << "':\n";
                       PrintedFn = true;
index f48d5afe297db2ef8528d210527f78c915aae21f..7cd0ba0723ea030ff5f62d70e2f5a9c327a589c3 100644 (file)
@@ -59,7 +59,7 @@ namespace {
               if (CS.getInstruction()) {
                 for (CallSite::arg_iterator AI = CS.arg_begin(),
                        E = CS.arg_end(); AI != E; ++AI)
-                  if (isa<Constant>(*AI) || isa<GlobalValue>(*AI)) {
+                  if (isa<Constant>(*AI)) {
                     if (!PrintedFn) {
                       std::cerr << "Function '" << I->getName() << "':\n";
                       PrintedFn = true;