summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
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/CodeGen
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/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index 99bc3f49ce9..7a89bf024f7 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -999,7 +999,7 @@ static CSFC_Result CollectStatementsForCase(const Stmt *S,
// If we're looking for the case, just see if we can skip each of the
// substatements.
for (; Case && I != E; ++I) {
- HadSkippedDecl |= isa<DeclStmt>(I);
+ HadSkippedDecl |= isa<DeclStmt>(*I);
switch (CollectStatementsForCase(*I, Case, FoundCase, ResultStmts)) {
case CSFC_Failure: return CSFC_Failure;
OpenPOWER on IntegriCloud