From ed139ac3659dff7385946ed140784a1227def411 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 28 Jan 2014 23:15:56 +0000 Subject: 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 --- include/llvm/Support/FileSystem.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') 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. -- cgit v1.2.3