Fix build of lldb after clang r235614.

llvm-svn: 235631
This commit is contained in:
Richard Smith 2015-04-23 19:36:34 +00:00
parent db04590717
commit 6d48859b18
1 changed files with 2 additions and 2 deletions

View File

@ -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())
{