Skip to content

Commit ebfe9d1

Browse files
committed
Revert "[clang] Use the VFS to get the OpenMP entry info (llvm#160935)"
This reverts commit 220ad03.
1 parent b7133ba commit ebfe9d1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

clang/lib/CodeGen/CGOpenMPRuntime.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,8 +1566,10 @@ static llvm::TargetRegionEntryInfo getEntryInfoFromPresumedLoc(
15661566
SourceManager &SM = CGM.getContext().getSourceManager();
15671567
PresumedLoc PLoc = SM.getPresumedLoc(BeginLoc);
15681568

1569-
if (CGM.getFileSystem()->exists(PLoc.getFilename()))
1569+
llvm::sys::fs::UniqueID ID;
1570+
if (llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) {
15701571
PLoc = SM.getPresumedLoc(BeginLoc, /*UseLineDirectives=*/false);
1572+
}
15711573

15721574
return std::pair<std::string, uint64_t>(PLoc.getFilename(), PLoc.getLine());
15731575
};

revert_patches.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ needs more offload patches
2222
need to resole API changes downstream
2323
[Offload] Use Error for allocating/deallocating in plugins
2424
---
25+
breaks smoke flags, wgs64
26+
[clang] Use the VFS to get the OpenMP entry info (#160935)
27+
---

0 commit comments

Comments
 (0)