commit | ed66bf5125ec47a338854d5e8a556f1686fd69bb | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Fri May 07 18:19:32 2010 +0000 |
committer | Devang Patel <dpatel@apple.com> | Fri May 07 18:19:32 2010 +0000 |
tree | 4bd2f947dd9f58dcde7dfb84065313f76291dc77 | |
parent | 2db49d797b86b7f3615bae17b2b016727778a6c4 [diff] |
Use overloaded operators instead of DIDescriptor::getNode() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103276 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Utils/CloneFunction.cpp b/lib/Transforms/Utils/CloneFunction.cpp index 8ad66dd..6d4fe4b 100644 --- a/lib/Transforms/Utils/CloneFunction.cpp +++ b/lib/Transforms/Utils/CloneFunction.cpp
@@ -344,7 +344,7 @@ DILocation OrigLocation = ILoc.getOrigLocation(); MDNode *NewLoc = TheCallMD; if (OrigLocation.Verify()) - NewLoc = UpdateInlinedAtInfo(OrigLocation.getNode(), TheCallMD); + NewLoc = UpdateInlinedAtInfo(OrigLocation, TheCallMD); Value *MDVs[] = { InsnMD->getOperand(0), // Line
diff --git a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index f181f3a..51da1d4 100644 --- a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
@@ -886,7 +886,7 @@ void PromoteMem2Reg::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI, StoreInst *SI) { DIVariable DIVar(DDI->getVariable()); - if (!DIVar.getNode()) + if (!DIVar) return; if (!DIF)