[clang] [llvm] [inline] Clone return range attribute on the callsite into inlined call (PR #92666)
Andreas Jonson via cfe-commits
cfe-commits at lists.llvm.org
Tue May 28 13:50:38 PDT 2024
================
@@ -1444,6 +1445,8 @@ static AttrBuilder IdentifyValidPoisonGeneratingAttributes(CallBase &CB) {
Valid.addAttribute(Attribute::NonNull);
if (CB.hasRetAttr(Attribute::Alignment))
Valid.addAlignmentAttr(CB.getRetAlign());
+ if (CB.hasRetAttr(Attribute::Range))
+ Valid.addRangeAttr(*CB.getRange());
----------------
andjo403 wrote:
fixed
https://github.com/llvm/llvm-project/pull/92666
More information about the cfe-commits
mailing list