summaryrefslogtreecommitdiff
path: root/lib/Analysis/IPA/FindUnsafePointerTypes.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-27 15:13:33 +0000
committerChris Lattner <sabre@nondot.org>2004-04-27 15:13:33 +0000
commit6ffe551f657c948d6a473a198ecbd1188bf9ce45 (patch)
tree7502db02d88eff125fc9e8c36d140faea8484787 /lib/Analysis/IPA/FindUnsafePointerTypes.cpp
parent21e232501a9d5ace29187b20a211ca73b09a1c75 (diff)
downloadllvm-6ffe551f657c948d6a473a198ecbd1188bf9ce45.tar.gz
llvm-6ffe551f657c948d6a473a198ecbd1188bf9ce45.tar.bz2
llvm-6ffe551f657c948d6a473a198ecbd1188bf9ce45.tar.xz
Changes to fix up the inst_iterator to pass to boost iterator checks. This
patch was graciously contributed by Vladimir Prus. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/FindUnsafePointerTypes.cpp')
-rw-r--r--lib/Analysis/IPA/FindUnsafePointerTypes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/IPA/FindUnsafePointerTypes.cpp b/lib/Analysis/IPA/FindUnsafePointerTypes.cpp
index 45f5b72ecf..67ab52d8a8 100644
--- a/lib/Analysis/IPA/FindUnsafePointerTypes.cpp
+++ b/lib/Analysis/IPA/FindUnsafePointerTypes.cpp
@@ -42,8 +42,8 @@ static cl::opt<bool>
PrintFailures("printunsafeptrinst", cl::Hidden,
cl::desc("Print Unsafe Pointer Access Instructions"));
-static inline bool isSafeInstruction(const Instruction *I) {
- switch (I->getOpcode()) {
+static inline bool isSafeInstruction(const Instruction &I) {
+ switch (I.getOpcode()) {
case Instruction::Alloca:
case Instruction::Malloc:
case Instruction::Free:
@@ -72,7 +72,7 @@ bool FindUnsafePointerTypes::run(Module &Mod) {
if (PrintFailures) {
CachedWriter CW(F->getParent(), std::cerr);
CW << "FindUnsafePointerTypes: Type '" << ITy
- << "' marked unsafe in '" << F->getName() << "' by:\n" << **I;
+ << "' marked unsafe in '" << F->getName() << "' by:\n" << *I;
}
}
}