mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-02 02:14:23 +00:00
Convert to the inner enum so the compiler can warn about it in switches.
llvm-svn: 200352
This commit is contained in:
parent
69762f7e1e
commit
64d9f0edcd
@ -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…
x
Reference in New Issue
Block a user