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:
Rafael Espindola 2014-01-28 23:15:56 +00:00
parent 634295bcb6
commit ed139ac365

View File

@ -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.