diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-15 02:31:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-15 02:31:46 +0000 |
commit | 1ff1ff70e3eef938b1290f3e3b386bb0feca2c5a (patch) | |
tree | 2a2e94cebbd4b2019ae8ca692e52043db1800a09 /lib/Analysis/IPA/FindUnsafePointerTypes.cpp | |
parent | f92791ace54edde981e9fb2339cddd1152c4c396 (diff) |
Fixes for PR341
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/FindUnsafePointerTypes.cpp')
-rw-r--r-- | lib/Analysis/IPA/FindUnsafePointerTypes.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Analysis/IPA/FindUnsafePointerTypes.cpp b/lib/Analysis/IPA/FindUnsafePointerTypes.cpp index 25fcc8dfdf..52a83a1dfd 100644 --- a/lib/Analysis/IPA/FindUnsafePointerTypes.cpp +++ b/lib/Analysis/IPA/FindUnsafePointerTypes.cpp @@ -25,12 +25,11 @@ #include "llvm/Analysis/FindUnsafePointerTypes.h" #include "llvm/Assembly/CachedWriter.h" -#include "llvm/Type.h" +#include "llvm/DerivedTypes.h" #include "llvm/Module.h" #include "llvm/Support/InstIterator.h" #include "Support/CommandLine.h" - -namespace llvm { +using namespace llvm; static RegisterAnalysis<FindUnsafePointerTypes> X("unsafepointertypes", "Find Unsafe Pointer Types"); @@ -72,7 +71,7 @@ bool FindUnsafePointerTypes::run(Module &Mod) { if (PrintFailures) { CachedWriter CW(F->getParent(), std::cerr); std::cerr << "FindUnsafePointerTypes: Type '"; - CW << ITy; + CW << *ITy; std::cerr << "' marked unsafe in '" << F->getName() << "' by:\n"; CW << *I; } @@ -101,8 +100,7 @@ void FindUnsafePointerTypes::print(std::ostream &o, const Module *M) const { E = getUnsafeTypes().end(); I != E; ++I, ++Counter) { o << " #" << Counter << ". "; - CW << (Type*)*I << "\n"; + CW << **I << "\n"; } } -} // End llvm namespace |