Fix the clang part of PR7952: rewrite the specialization of isa<> in DeclBase,

and stop abusing the multi-level dereference isa<> used to allow.

llvm-svn: 131804
This commit is contained in:
Eli Friedman
2011-05-21 19:15:39 +00:00
parent 3de2ddc578
commit e08bca9eb4
3 changed files with 5 additions and 10 deletions

View File

@@ -65,7 +65,7 @@ clang::createInvocationFromCommandLine(llvm::ArrayRef<const char *> ArgList,
// We expect to get back exactly one command job, if we didn't something
// failed.
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);