mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Convert to the inner enum so the compiler can warn about it in switches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200352 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
634295bcb6
commit
ed139ac365
@ -66,11 +66,10 @@ struct file_type {
|
||||
};
|
||||
|
||||
file_type(_ v) : v_(v) {}
|
||||
explicit file_type(int v) : v_(_(v)) {}
|
||||
operator int() const {return v_;}
|
||||
operator _() const {return v_;}
|
||||
|
||||
private:
|
||||
int v_;
|
||||
_ v_;
|
||||
};
|
||||
|
||||
/// space_info - Self explanatory.
|
||||
|
Loading…
Reference in New Issue
Block a user