]> granicus.if.org Git - clang/commitdiff
Fix examples compile break due to rewrite of isa.
authorManuel Klimek <klimek@google.com>
Mon, 23 May 2011 18:25:41 +0000 (18:25 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 23 May 2011 18:25:41 +0000 (18:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131912 91177308-0d34-0410-b5e6-96231b3b80d8

examples/clang-interpreter/main.cpp

index ad39ecec9bd32f43d152996407163a38f839fddd..16f4dab05d7092c6a091679c6c1dbd1ad7d9d0cc 100644 (file)
@@ -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<driver::Command>(Jobs.begin())) {
+  if (Jobs.size() != 1 || !isa<driver::Command>(*Jobs.begin())) {
     llvm::SmallString<256> Msg;
     llvm::raw_svector_ostream OS(Msg);
     C->PrintJob(OS, C->getJobs(), "; ", true);