commit | 85ddc4cb1aa93c9d6062525f269240829bf6e83f | [log] [tgz] |
---|---|---|
author | Haojian Wu <hokein@google.com> | Thu Apr 27 12:22:33 2017 +0000 |
committer | Haojian Wu <hokein@google.com> | Thu Apr 27 12:22:33 2017 +0000 |
tree | 87543078bfee33f50ab2a476251909562c0a7ddf | |
parent | 318a6eae06dd9fe031d3ebed0870460e3b911b02 [diff] [blame] |
Fix asan failures on OpenMP. llvm-svn: 301536
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index fb13669..9c6948b 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -833,6 +833,8 @@ auto I = std::prev(StartI); do { ++I; + if (I == EndI) + break; if (!DPred(I->Directive) && !isParallelOrTaskRegion(I->Directive)) continue; DSAVarData DVar = getDSA(I, D);