Right, globals aren't values yet..

llvm-svn: 13822
This commit is contained in:
Chris Lattner 2004-05-27 06:43:37 +00:00
parent 06158d140c
commit 5f1a5bb735
1 changed files with 1 additions and 1 deletions

View 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;