summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-12-02 14:15:38 -0500
committerAlexey Bataev <a.bataev@hotmail.com>2019-12-02 14:16:52 -0500
commitf17a1d8b283d227dcbc88caf94acf55abc91c1f9 (patch)
tree0c58fbf180e493f0b4294d752b675774318fd03d /clang/lib/Sema
parent478541a6da59fa3eadab98cabdcb0126fad3fdb5 (diff)
downloadbcm5719-llvm-f17a1d8b283d227dcbc88caf94acf55abc91c1f9.tar.gz
bcm5719-llvm-f17a1d8b283d227dcbc88caf94acf55abc91c1f9.zip
[OPENMP]Use cast instead dyn_cast, NFC.
Here the expression is always a DeclRefExpr, no need to use dyn_cast.
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaOpenMP.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 2773efcf3da..50d9ab974dd 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -5445,7 +5445,7 @@ void Sema::markOpenMPDeclareVariantFuncsReferenced(SourceLocation Loc,
Func->specific_attrs<OMPDeclareVariantAttr>()) {
// TODO: add checks for active OpenMP context where possible.
Expr *VariantRef = A->getVariantFuncRef();
- auto *DRE = dyn_cast<DeclRefExpr>(VariantRef->IgnoreParenImpCasts());
+ auto *DRE = cast<DeclRefExpr>(VariantRef->IgnoreParenImpCasts());
auto *F = cast<FunctionDecl>(DRE->getDecl());
if (!F->isDefined() && F->isTemplateInstantiation())
InstantiateFunctionDefinition(Loc, F->getFirstDecl());
OpenPOWER on IntegriCloud