aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/TestModuleFileExtension.cpp
diff options
context:
space:
mode:
authorAbid Qadeer <haqadeer@amd.com>2025-02-05 22:35:43 +0000
committerGitHub <noreply@github.com>2025-02-05 22:35:43 +0000
commit5f7acf7259ec693cf03d6dcc75d9b0ef1a4b4e81 (patch)
tree4d3336b56d72152e57e8c42d7f97a28051c497c6 /clang/lib/Frontend/TestModuleFileExtension.cpp
parent8b448842c4766306b74f9dba2ee9ad3af12fea6c (diff)
downloadllvm-5f7acf7259ec693cf03d6dcc75d9b0ef1a4b4e81.zip
llvm-5f7acf7259ec693cf03d6dcc75d9b0ef1a4b4e81.tar.gz
llvm-5f7acf7259ec693cf03d6dcc75d9b0ef1a4b4e81.tar.bz2
[flang][OMPIRbuilder] Set debug loc on terminator created by splitBB. (#125897)
Fixes #125088. When splitBB is called with createBranch=true, it creates a branch instruction in the old block. But no debug loc is set on that branch instruction. If that is used as InsertPoint in the restoreIP, it has the potential to set the current debug location to null and subsequent instruction will come out without a debug location. This caused the verification check to fail as shown in the bug report. This PR changes splitBB and spliceBB function to also take a debugLoc parameter which can be used to set the debug location of the branch instruction.
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions