Convert to the inner enum so the compiler can warn about it in switches.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 28 Jan 2014 23:15:56 +0000 (23:15 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 28 Jan 2014 23:15:56 +0000 (23:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200352 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/FileSystem.h

index 958e68294b5662da21ac54a3a73f7d8eac011341..a87011c9bd90c5b7be1ade3c3b9e07a19a8bac31 100644 (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.