File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -4698,26 +4698,25 @@ class FunctionEffect {
4698
4698
};
4699
4699
4700
4700
private:
4701
- LLVM_PREFERRED_TYPE (Kind)
4702
- unsigned FKind : 3 ;
4701
+ Kind FKind;
4703
4702
4704
4703
// Expansion: for hypothetical TCB+types, there could be one Kind for TCB,
4705
4704
// then ~16(?) bits "SubKind" to map to a specific named TCB. SubKind would
4706
4705
// be considered for uniqueness.
4707
4706
4708
4707
public:
4709
- FunctionEffect () : FKind(unsigned ( Kind::None) ) {}
4708
+ FunctionEffect () : FKind(Kind::None) {}
4710
4709
4711
- explicit FunctionEffect (Kind K) : FKind(unsigned (K) ) {}
4710
+ explicit FunctionEffect (Kind K) : FKind(K ) {}
4712
4711
4713
4712
// / The kind of the effect.
4714
- Kind kind () const { return Kind ( FKind) ; }
4713
+ Kind kind () const { return FKind; }
4715
4714
4716
4715
// / Return the opposite kind, for effects which have opposites.
4717
4716
Kind oppositeKind () const ;
4718
4717
4719
4718
// / For serialization.
4720
- uint32_t toOpaqueInt32 () const { return FKind; }
4719
+ uint32_t toOpaqueInt32 () const { return uint32_t ( FKind) ; }
4721
4720
static FunctionEffect fromOpaqueInt32 (uint32_t Value) {
4722
4721
return FunctionEffect (Kind (Value));
4723
4722
}
You can’t perform that action at this time.
0 commit comments