Skip to content

Commit 6d1b173

Browse files
committed
This patch reverts the fix added in llvm#85218 in favour of a better approach.
1 parent 321f831 commit 6d1b173

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4886,11 +4886,8 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::createTargetData(
48864886
return InsertPointTy();
48874887

48884888
// Disable TargetData CodeGen on Device pass.
4889-
if (Config.IsTargetDevice.value_or(false)) {
4890-
if (BodyGenCB)
4891-
Builder.restoreIP(BodyGenCB(Builder.saveIP(), BodyGenTy::NoPriv));
4889+
if (Config.IsTargetDevice.value_or(false))
48924890
return Builder.saveIP();
4893-
}
48944891

48954892
Builder.restoreIP(CodeGenIP);
48964893
bool IsStandAlone = !BodyGenCB;

0 commit comments

Comments
 (0)