Skip to content

Commit 7c183c7

Browse files
committed
Compile debug output for 'teams loop' codegen type under NDEBUG.
1 parent 825531e commit 7c183c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7563,6 +7563,7 @@ bool CodeGenModule::teamsLoopCanBeParallelFor(const OMPExecutableDirective &D) {
75637563

75647564
void CodeGenModule::emitTargetTeamsLoopCodegenStatus(
75657565
std::string StatusMsg, const OMPExecutableDirective &D, bool IsDevice) {
7566+
#ifndef NDEBUG
75667567
if (IsDevice)
75677568
StatusMsg += ": DEVICE";
75687569
else
@@ -7574,6 +7575,7 @@ void CodeGenModule::emitTargetTeamsLoopCodegenStatus(
75747575
unsigned LineNo =
75757576
PLoc.isValid() ? PLoc.getLine() : SM.getExpansionLineNumber(L);
75767577
llvm::dbgs() << StatusMsg << ": " << FileName << ": " << LineNo << "\n";
7578+
#endif
75777579
}
75787580

75797581
void CodeGenModule::moveLazyEmissionStates(CodeGenModule *NewBuilder) {

0 commit comments

Comments
 (0)