Skip to content

Commit bb118c4

Browse files
committed
Compile debug output for 'teams loop' codegen type under NDEBUG.
1 parent a000a8f commit bb118c4

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
@@ -7657,6 +7657,7 @@ bool CodeGenModule::teamsLoopCanBeParallelFor(const OMPExecutableDirective &D) {
76577657

76587658
void CodeGenModule::emitTargetTeamsLoopCodegenStatus(
76597659
std::string StatusMsg, const OMPExecutableDirective &D, bool IsDevice) {
7660+
#ifndef NDEBUG
76607661
if (IsDevice)
76617662
StatusMsg += ": DEVICE";
76627663
else
@@ -7668,6 +7669,7 @@ void CodeGenModule::emitTargetTeamsLoopCodegenStatus(
76687669
unsigned LineNo =
76697670
PLoc.isValid() ? PLoc.getLine() : SM.getExpansionLineNumber(L);
76707671
llvm::dbgs() << StatusMsg << ": " << FileName << ": " << LineNo << "\n";
7672+
#endif
76717673
}
76727674

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

0 commit comments

Comments
 (0)