From: Manuel Klimek Date: Mon, 23 May 2011 18:25:41 +0000 (+0000) Subject: Fix examples compile break due to rewrite of isa. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8b3e6302f75c4fd44866ecfca9a7063d176c30c;p=clang Fix examples compile break due to rewrite of isa. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131912 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/examples/clang-interpreter/main.cpp b/examples/clang-interpreter/main.cpp index ad39ecec9b..16f4dab05d 100644 --- a/examples/clang-interpreter/main.cpp +++ b/examples/clang-interpreter/main.cpp @@ -94,7 +94,7 @@ int main(int argc, const char **argv, char * const *envp) { // We expect to get back exactly one command job, if we didn't something // failed. Extract that job from the compilation. const driver::JobList &Jobs = C->getJobs(); - if (Jobs.size() != 1 || !isa(Jobs.begin())) { + if (Jobs.size() != 1 || !isa(*Jobs.begin())) { llvm::SmallString<256> Msg; llvm::raw_svector_ostream OS(Msg); C->PrintJob(OS, C->getJobs(), "; ", true);