mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Right, globals aren't values yet..
llvm-svn: 13822
This commit is contained in:
parent
e91dc2545c
commit
2236327da5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user