diff options
author | Devang Patel <dpatel@apple.com> | 2010-03-08 18:25:48 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-03-08 18:25:48 +0000 |
commit | fe28599f6f720ec90d50f07ae06086a5e1606496 (patch) | |
tree | 2432d34a7e55f999cc513fc718e49480adc9d7be /llvm/lib/Transforms/Utils/CloneFunction.cpp | |
parent | de4827dd340b77640b4cead98502148d8a5bcf70 (diff) | |
download | llvm-fe28599f6f720ec90d50f07ae06086a5e1606496.zip llvm-fe28599f6f720ec90d50f07ae06086a5e1606496.tar.gz llvm-fe28599f6f720ec90d50f07ae06086a5e1606496.tar.bz2 |
Avoid using DIDescriptor.isNull().
This is a first step towards eliminating unncessary constructor checks in light weight DIDescriptor wrappers.
llvm-svn: 97947
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/CloneFunction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp index c80827d..62fc2ec 100644 --- a/llvm/lib/Transforms/Utils/CloneFunction.cpp +++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp @@ -336,14 +336,14 @@ ConstantFoldMappedInstruction(const Instruction *I) { static MDNode *UpdateInlinedAtInfo(MDNode *InsnMD, MDNode *TheCallMD) { DILocation ILoc(InsnMD); - if (ILoc.isNull()) return InsnMD; + if (!ILoc.Verify()) return InsnMD; DILocation CallLoc(TheCallMD); - if (CallLoc.isNull()) return InsnMD; + if (!CallLoc.Verify()) return InsnMD; DILocation OrigLocation = ILoc.getOrigLocation(); MDNode *NewLoc = TheCallMD; - if (!OrigLocation.isNull()) + if (OrigLocation.Verify()) NewLoc = UpdateInlinedAtInfo(OrigLocation.getNode(), TheCallMD); Value *MDVs[] = { |