From 1ed86d74a87baca2e42b90873345c63811647b1d Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sun, 11 Jan 2009 17:02:06 +0000 Subject: [PATCH] Use the spiffy new getAlignmentFromAttrs function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62039 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Attributes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp index dd47814d97a..0f3efa7b9dd 100644 --- a/lib/VMCore/Attributes.cpp +++ b/lib/VMCore/Attributes.cpp @@ -61,7 +61,7 @@ std::string Attribute::getAsString(Attributes Attrs) { Result += "sspreq "; if (Attrs & Attribute::Alignment) { Result += "align "; - Result += utostr(1ull << (((Attrs & Attribute::Alignment)>>16) - 1)); + Result += utostr(Attribute::getAlignmentFromAttrs(Attrs)); Result += " "; } // Trim the trailing space. -- 2.34.1