summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorLarisse Voufo <lvoufo@google.com>2013-08-06 07:33:00 +0000
committerLarisse Voufo <lvoufo@google.com>2013-08-06 07:33:00 +0000
commit833b05a273da65f78bc3915aecfaac1fed4a1cc5 (patch)
tree4f827b69cb84f8441fed0f1b7a6bfe86d73819e2 /clang/lib/Parse/ParseDecl.cpp
parentcf969eadaf5786cea0c008f3c786360d34c8bc34 (diff)
downloadbcm5719-llvm-833b05a273da65f78bc3915aecfaac1fed4a1cc5.tar.gz
bcm5719-llvm-833b05a273da65f78bc3915aecfaac1fed4a1cc5.zip
A bit of clean up based on peer's feedback...
llvm-svn: 187784
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 3f15b5b089a..eda52a4e83a 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -1806,8 +1806,7 @@ Decl *Parser::ParseDeclarationAfterDeclaratorAndAttributes(Declarator &D,
SkipUntil(tok::semi, true, true);
return 0;
}
- if (VarTemplateDecl *VT =
- ThisDecl ? dyn_cast<VarTemplateDecl>(ThisDecl) : 0)
+ if (VarTemplateDecl *VT = dyn_cast_or_null<VarTemplateDecl>(ThisDecl))
// Re-direct this decl to refer to the templated decl so that we can
// initialize it.
ThisDecl = VT->getTemplatedDecl();
OpenPOWER on IntegriCloud