diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-03-25 09:27:43 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-03-25 09:27:43 +0000 |
commit | f0a15d88afce23453ff55894400035014ad46a15 (patch) | |
tree | 2424c67d25196d9a52d372285d101025340bd209 /lib/Transforms/ObjCARC/ObjCARC.h | |
parent | a231033e7044a8956b0eff673ca8cb5c4706aa5f (diff) | |
download | llvm-f0a15d88afce23453ff55894400035014ad46a15.tar.gz llvm-f0a15d88afce23453ff55894400035014ad46a15.tar.bz2 llvm-f0a15d88afce23453ff55894400035014ad46a15.tar.xz |
Changed isNullOrUndef => IsNullOrUndef and isNoopInstruction => IsNoopInstruction so that all helper functions are named similarly in ObjCARC.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/ObjCARC/ObjCARC.h')
-rw-r--r-- | lib/Transforms/ObjCARC/ObjCARC.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/ObjCARC/ObjCARC.h b/lib/Transforms/ObjCARC/ObjCARC.h index 61602260be..ba98e0a9c8 100644 --- a/lib/Transforms/ObjCARC/ObjCARC.h +++ b/lib/Transforms/ObjCARC/ObjCARC.h @@ -264,11 +264,11 @@ static inline Value *GetObjCArg(Value *Inst) { return StripPointerCastsAndObjCCalls(cast<CallInst>(Inst)->getArgOperand(0)); } -static inline bool isNullOrUndef(const Value *V) { +static inline bool IsNullOrUndef(const Value *V) { return isa<ConstantPointerNull>(V) || isa<UndefValue>(V); } -static inline bool isNoopInstruction(const Instruction *I) { +static inline bool IsNoopInstruction(const Instruction *I) { return isa<BitCastInst>(I) || (isa<GetElementPtrInst>(I) && cast<GetElementPtrInst>(I)->hasAllZeroIndices()); |