summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/tools/clang/lib/Sema/SemaOpenMP.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/tools/clang/lib/Sema/SemaOpenMP.cpp')
-rw-r--r--gnu/llvm/tools/clang/lib/Sema/SemaOpenMP.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnu/llvm/tools/clang/lib/Sema/SemaOpenMP.cpp b/gnu/llvm/tools/clang/lib/Sema/SemaOpenMP.cpp
index aedec746af9..8a0be0c472d 100644
--- a/gnu/llvm/tools/clang/lib/Sema/SemaOpenMP.cpp
+++ b/gnu/llvm/tools/clang/lib/Sema/SemaOpenMP.cpp
@@ -4602,8 +4602,7 @@ DeclRefExpr *OpenMPIterationSpaceChecker::buildCounterVar(
Captures.insert(std::make_pair(LCRef, Ref));
return Ref;
}
- return buildDeclRefExpr(SemaRef, VD, VD->getType().getNonReferenceType(),
- DefaultLoc);
+ return cast<DeclRefExpr>(LCRef);
}
Expr *OpenMPIterationSpaceChecker::buildPrivateCounterVar() const {