From 6d48859b18938e1e72f28999cf2d6e9ce55cc955 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 23 Apr 2015 19:36:34 +0000 Subject: [PATCH] Fix build of lldb after clang r235614. llvm-svn: 235631 --- lldb/source/Expression/ClangModulesDeclVendor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Expression/ClangModulesDeclVendor.cpp b/lldb/source/Expression/ClangModulesDeclVendor.cpp index b4dd73b..9269bec 100644 --- a/lldb/source/Expression/ClangModulesDeclVendor.cpp +++ b/lldb/source/Expression/ClangModulesDeclVendor.cpp @@ -486,12 +486,12 @@ ClangModulesDeclVendorImpl::ForEachMacro(const ClangModulesDeclVendor::ModuleVec continue; } - if (mi->second->getKind() == clang::MacroDirective::MD_Define) + if (mi->second.getLatest()->getKind() == clang::MacroDirective::MD_Define) { std::string macro_expansion = "#define "; macro_expansion.append(mi->first->getName().str().c_str()); - if (clang::MacroInfo *macro_info = mi->second->getMacroInfo()) + if (clang::MacroInfo *macro_info = mi->second.getLatest()->getMacroInfo()) { if (macro_info->isFunctionLike()) { -- 2.7.4