Do not try to print instructions. It seems that instruction printing now
requires an LLVMAssembly object of some kind.
llvm-svn: 87869
diff --git a/safecode/lib/IndirectCallChecks/IndirectCallChecks.cpp b/safecode/lib/IndirectCallChecks/IndirectCallChecks.cpp
index dcaa487..01c7f94 100755
--- a/safecode/lib/IndirectCallChecks/IndirectCallChecks.cpp
+++ b/safecode/lib/IndirectCallChecks/IndirectCallChecks.cpp
@@ -421,12 +421,16 @@
//handle incomplete callsites or 0-target callsites
if(!CTF->isComplete(cs)) {
IC_WARN("Call site is not complete, skipping bounds checks");
+#if 0
IC_PRINTWARN(cs.getInstruction());
+#endif
continue;
}
else if(CTF->begin(cs) == CTF->end(cs)) {
IC_WARN("Callsite has no targets, skipping bounds checks");
+#if 0
IC_PRINTWARN(cs.getInstruction());
+#endif
continue;
}
else {