Skip to content

Commit e631fe1

Browse files
author
Yaxun Liu
committed
do not dump llvm without env var
1 parent 5a86c95 commit e631fe1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPUSplitKernelArguments.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ class AMDGPUSplitKernelArguments : public ModulePass {
4545

4646
} // end anonymous namespace
4747
void AMDGPUSplitKernelArguments::dumpModuleToFile(Module &M, StringRef Suffix) {
48+
if (TargetFunction.empty())
49+
return;
4850
std::error_code EC;
4951
std::string Filename =
5052
(Twine(M.getModuleIdentifier()) + Twine(Suffix) + Twine(".ll")).str();

0 commit comments

Comments
 (0)