Convert to the inner enum so the compiler can warn about it in switches.

llvm-svn: 200352
This commit is contained in:
Rafael Espindola 2014-01-28 23:15:56 +00:00
parent 69762f7e1e
commit 64d9f0edcd

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.