File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -2473,22 +2473,26 @@ class AnyFunctionType : public TypeBase {
2473
2473
2474
2474
// Note that we don't have setters. That is by design, use
2475
2475
// the following with methods instead of mutating these objects.
2476
+ LLVM_NODISCARD
2476
2477
ExtInfo withRepresentation (Representation Rep) const {
2477
2478
return ExtInfo ((Bits & ~RepresentationMask)
2478
2479
| (unsigned )Rep);
2479
2480
}
2481
+ LLVM_NODISCARD
2480
2482
ExtInfo withIsAutoClosure (bool IsAutoClosure = true ) const {
2481
2483
if (IsAutoClosure)
2482
2484
return ExtInfo (Bits | AutoClosureMask);
2483
2485
else
2484
2486
return ExtInfo (Bits & ~AutoClosureMask);
2485
2487
}
2488
+ LLVM_NODISCARD
2486
2489
ExtInfo withNoEscape (bool NoEscape = true ) const {
2487
2490
if (NoEscape)
2488
2491
return ExtInfo (Bits | NoEscapeMask);
2489
2492
else
2490
2493
return ExtInfo (Bits & ~NoEscapeMask);
2491
2494
}
2495
+ LLVM_NODISCARD
2492
2496
ExtInfo withThrows (bool Throws = true ) const {
2493
2497
if (Throws)
2494
2498
return ExtInfo (Bits | ThrowsMask);
You can’t perform that action at this time.
0 commit comments