From abe7ce99f007455fe5e2a47c17af2a7454421a3b Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Sun, 22 Apr 2007 15:11:24 +0000 Subject: [PATCH] Implement review feedback. llvm-svn: 36342 --- include/llvm/GlobalValue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/GlobalValue.h b/include/llvm/GlobalValue.h index ae122a90d7b..a20c0580040 100644 --- a/include/llvm/GlobalValue.h +++ b/include/llvm/GlobalValue.h @@ -58,7 +58,7 @@ protected: // Note: VC++ treats enums as signed, so an extra bit is required to prevent // Linkage and Visibility from turning into negative values. LinkageTypes Linkage : 5; // The linkage of this global - VisibilityTypes Visibility : 2; // The visibility style of this global + unsigned Visibility : 1; // The visibility style of this global unsigned Alignment : 16; // Alignment of this symbol, must be power of two std::string Section; // Section to emit this into, empty mean default public: @@ -72,7 +72,7 @@ public: Alignment = Align; } - VisibilityTypes getVisibility() const { return Visibility; } + VisibilityTypes getVisibility() const { return (VisibilityTypes)Visibility; } bool hasHiddenVisibility() const { return Visibility == HiddenVisibility; } void setVisibility(VisibilityTypes V) { Visibility = V; }