summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-03-08 20:52:55 +0000
committerDevang Patel <dpatel@apple.com>2010-03-08 20:52:55 +0000
commit3b548aa8e2c32460b21dd47b89fd1267fcd35504 (patch)
tree401064ad423c8d53daa408b7201059effb519afa /llvm/lib/Transforms/Utils/CloneFunction.cpp
parent2e8b9b5ad3d5ff3b61ee2ff6d279e87a1d768870 (diff)
downloadbcm5719-llvm-3b548aa8e2c32460b21dd47b89fd1267fcd35504.tar.gz
bcm5719-llvm-3b548aa8e2c32460b21dd47b89fd1267fcd35504.zip
Avoid using DIDescriptor.isNull().
This is a first step towards eliminating checks in Descriptor constructors. llvm-svn: 97975
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index c80827d4983..62fc2ec10b1 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[] = {
OpenPOWER on IntegriCloud