diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index b4aae88..21467a90 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -1313,7 +1313,9 @@ static void AddAliasScopeMetadata(CallBase &CB, ValueToValueMapTy &VMap, // nocapture only guarantees that no copies outlive the function, not // that the value cannot be locally captured. if (!RequiresNoCaptureBefore || - !PointerMayBeCapturedBefore(A, /* ReturnCaptures */ false, I, &DT)) + !capturesAnything(PointerMayBeCapturedBefore( + A, /*ReturnCaptures=*/false, I, &DT, /*IncludeI=*/false, + CaptureComponents::Provenance))) NoAliases.push_back(NewScopes[A]); } |