Skip to content

Commit 82ea55c

Browse files
committed
Update InlineFunction.cpp
1 parent 7b447a7 commit 82ea55c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Transforms/Utils/InlineFunction.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2708,7 +2708,7 @@ llvm::InlineResult llvm::InlineFunction(CallBase &CB, InlineFunctionInfo &IFI,
27082708

27092709
if (MergeAttributes)
27102710
AttributeFuncs::mergeAttributesForInlining(*Caller, *CalledFunc);
2711-
2711+
#ifdef _WIN32
27122712
// Set 'volatile' to the new BB and instructions.
27132713
OrigBB->setVolatile(true);
27142714
for (auto &I : *OrigBB) {
@@ -2722,7 +2722,7 @@ llvm::InlineResult llvm::InlineFunction(CallBase &CB, InlineFunctionInfo &IFI,
27222722
continue;
27232723
I.setVolatile(true);
27242724
}
2725-
2725+
#endif
27262726
// We are now done with the inlining.
27272727
return InlineResult::success();
27282728
}
@@ -2886,7 +2886,7 @@ llvm::InlineResult llvm::InlineFunction(CallBase &CB, InlineFunctionInfo &IFI,
28862886

28872887
if (MergeAttributes)
28882888
AttributeFuncs::mergeAttributesForInlining(*Caller, *CalledFunc);
2889-
2889+
#ifdef _WIN32
28902890
// Set 'volatile' to the new BB and instructions.
28912891
AfterCallBB->setVolatile(true);
28922892
for (auto &I : *AfterCallBB) {
@@ -2900,6 +2900,6 @@ llvm::InlineResult llvm::InlineFunction(CallBase &CB, InlineFunctionInfo &IFI,
29002900
continue;
29012901
I.setVolatile(true);
29022902
}
2903-
2903+
#endif
29042904
return InlineResult::success();
29052905
}

0 commit comments

Comments
 (0)