[cfe-commits] r131912 - /cfe/trunk/examples/clang-interpreter/main.cpp
Manuel Klimek
klimek at google.com
Mon May 23 11:25:41 PDT 2011
Author: klimek
Date: Mon May 23 13:25:41 2011
New Revision: 131912
URL: http://llvm.org/viewvc/llvm-project?rev=131912&view=rev
Log:
Fix examples compile break due to rewrite of isa.
Modified:
cfe/trunk/examples/clang-interpreter/main.cpp
Modified: cfe/trunk/examples/clang-interpreter/main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/clang-interpreter/main.cpp?rev=131912&r1=131911&r2=131912&view=diff
==============================================================================
--- cfe/trunk/examples/clang-interpreter/main.cpp (original)
+++ cfe/trunk/examples/clang-interpreter/main.cpp Mon May 23 13:25:41 2011
@@ -94,7 +94,7 @@
// 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);
More information about the cfe-commits
mailing list