diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -1368,9 +1368,6 @@ } static void AddReturnAttributes(CallBase &CB, ValueToValueMapTy &VMap) { - if (!UpdateReturnAttributes) - return; - AttrBuilder Valid = IdentifyValidAttributes(CB); if (!Valid.hasAttributes()) return;