diff options
| -rw-r--r-- | lldb/source/Expression/IRDynamicChecks.cpp | 2 | ||||
| -rw-r--r-- | lldb/source/Expression/IRForTarget.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/IRDynamicChecks.cpp b/lldb/source/Expression/IRDynamicChecks.cpp index aa5d28bb8aa..6ab51ce9b7f 100644 --- a/lldb/source/Expression/IRDynamicChecks.cpp +++ b/lldb/source/Expression/IRDynamicChecks.cpp @@ -514,7 +514,7 @@ private: { // This metadata is set by IRForTarget::MaybeHandleCall(). - MDNode *metadata = call_inst->getMetadata("lldb.call.realName"); + MDNode *metadata = call_inst->getMDNode("lldb.call.realName"); if (!metadata) return true; diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp index b91e1b46f88..fd2aaf89d13 100644 --- a/lldb/source/Expression/IRForTarget.cpp +++ b/lldb/source/Expression/IRForTarget.cpp @@ -1210,7 +1210,7 @@ IRForTarget::RewritePersistentAlloc (llvm::Instruction *persistent_alloc) AllocaInst *alloc = dyn_cast<AllocaInst>(persistent_alloc); - MDNode *alloc_md = alloc->getMetadata("clang.decl.ptr"); + MDNode *alloc_md = alloc->getMDNode("clang.decl.ptr"); if (!alloc_md || !alloc_md->getNumOperands()) return false; |

