summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-05-21 19:15:39 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-05-21 19:15:39 +0000
commite08bca9eb48bc11ce5d3b66cd239f2b41c9d48fb (patch)
treedf3f2f61aa84cdb060fcf014dcc5471b0a4463c1 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parent3de2ddc57897b914e286b39fc875133ed9f4e010 (diff)
downloadbcm5719-llvm-e08bca9eb48bc11ce5d3b66cd239f2b41c9d48fb.tar.gz
bcm5719-llvm-e08bca9eb48bc11ce5d3b66cd239f2b41c9d48fb.zip
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
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
-rw-r--r--clang/lib/Frontend/CreateInvocationFromCommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp b/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
index 0005f910d21..42b648aa641 100644
--- a/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
+++ b/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
@@ -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);
OpenPOWER on IntegriCloud