We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee7ca0d commit 8f799d8Copy full SHA for 8f799d8
llvm/lib/Linker/IRMover.cpp
@@ -1562,8 +1562,7 @@ Error IRLinker::run() {
1562
bool EnableDLWarning = true;
1563
bool EnableTripleWarning = true;
1564
if (SrcTriple.isNVPTX() && DstTriple.isNVPTX()) {
1565
- std::string ModuleId = SrcM->getModuleIdentifier();
1566
- StringRef FileName = llvm::sys::path::filename(ModuleId);
+ StringRef FileName = SrcM->getSourceFileName();
1567
bool SrcIsLibDevice =
1568
FileName.starts_with("libdevice") && FileName.ends_with(".10.bc");
1569
bool SrcHasLibDeviceDL =
0 commit comments