diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-28 23:15:56 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-28 23:15:56 +0000 |
commit | ed139ac3659dff7385946ed140784a1227def411 (patch) | |
tree | 56975bf6c24b596d33701b59ad85ba17528daa7d /include | |
parent | 634295bcb62646ea75dfe2248dc5a9d4b9d33ff1 (diff) | |
download | llvm-ed139ac3659dff7385946ed140784a1227def411.tar.gz llvm-ed139ac3659dff7385946ed140784a1227def411.tar.bz2 llvm-ed139ac3659dff7385946ed140784a1227def411.tar.xz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 958e68294b..a87011c9bd 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -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. |