diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2019-12-02 14:15:38 -0500 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-12-02 14:16:52 -0500 |
| commit | f17a1d8b283d227dcbc88caf94acf55abc91c1f9 (patch) | |
| tree | 0c58fbf180e493f0b4294d752b675774318fd03d /clang/lib/Sema | |
| parent | 478541a6da59fa3eadab98cabdcb0126fad3fdb5 (diff) | |
| download | bcm5719-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.cpp | 2 |
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()); |

