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 @@ -4719,26 +4719,25 @@ class FunctionEffect {
4719
4719
};
4720
4720
4721
4721
private:
4722
- LLVM_PREFERRED_TYPE (Kind)
4723
- unsigned FKind : 3 ;
4722
+ Kind FKind;
4724
4723
4725
4724
// Expansion: for hypothetical TCB+types, there could be one Kind for TCB,
4726
4725
// then ~16(?) bits "SubKind" to map to a specific named TCB. SubKind would
4727
4726
// be considered for uniqueness.
4728
4727
4729
4728
public:
4730
- FunctionEffect () : FKind(unsigned ( Kind::None) ) {}
4729
+ FunctionEffect () : FKind(Kind::None) {}
4731
4730
4732
- explicit FunctionEffect (Kind K) : FKind(unsigned (K) ) {}
4731
+ explicit FunctionEffect (Kind K) : FKind(K ) {}
4733
4732
4734
4733
// / The kind of the effect.
4735
- Kind kind () const { return Kind ( FKind) ; }
4734
+ Kind kind () const { return FKind; }
4736
4735
4737
4736
// / Return the opposite kind, for effects which have opposites.
4738
4737
Kind oppositeKind () const ;
4739
4738
4740
4739
// / For serialization.
4741
- uint32_t toOpaqueInt32 () const { return FKind; }
4740
+ uint32_t toOpaqueInt32 () const { return uint32_t ( FKind) ; }
4742
4741
static FunctionEffect fromOpaqueInt32 (uint32_t Value) {
4743
4742
return FunctionEffect (Kind (Value));
4744
4743
}
You can’t perform that action at this time.
0 commit comments