[all-commits] [llvm/llvm-project] 6b0f35: Fix signal during the call to checkOpenMPLoop.
jyu2-git via All-commits
all-commits at lists.llvm.org
Thu Aug 5 09:14:56 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6b0f35931a44b0fbd27297f83087d3a4c352e83f
https://github.com/llvm/llvm-project/commit/6b0f35931a44b0fbd27297f83087d3a4c352e83f
Author: Jennifer Yu <jennifer.yu at intel.com>
Date: 2021-08-05 (Thu, 05 Aug 2021)
Changed paths:
M clang/lib/Sema/SemaOpenMP.cpp
M clang/test/OpenMP/teams_distribute_loop_messages.cpp
Log Message:
-----------
Fix signal during the call to checkOpenMPLoop.
The root problem is a null pointer is accessed during the call to
checkOpenMPLoop, because loop up bound expr is an error expression
due to error diagnostic was emit early.
To fix this, in setLCDeclAndLB, setUB and setStep instead return false,
return true when LB, UB or Step contains Error, so that the checking is
stopped in checkOpenMPLoop.
Differential Revision: https://reviews.llvm.org/D107385
More information about the All-commits
mailing list