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 321f831 commit 6d1b173Copy full SHA for 6d1b173
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -4886,11 +4886,8 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::createTargetData(
4886
return InsertPointTy();
4887
4888
// Disable TargetData CodeGen on Device pass.
4889
- if (Config.IsTargetDevice.value_or(false)) {
4890
- if (BodyGenCB)
4891
- Builder.restoreIP(BodyGenCB(Builder.saveIP(), BodyGenTy::NoPriv));
+ if (Config.IsTargetDevice.value_or(false))
4892
return Builder.saveIP();
4893
- }
4894
4895
Builder.restoreIP(CodeGenIP);
4896
bool IsStandAlone = !BodyGenCB;
0 commit comments