aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-01-11 17:02:06 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-01-11 17:02:06 +0000
commit1ed86d74a87baca2e42b90873345c63811647b1d (patch)
tree92eab1a71887995c909b29b2a163bfb5bed182b7 /lib
parent9aacec1f26cd9ee328c461624ffcbde3aa2f6ab1 (diff)
Use the spiffy new getAlignmentFromAttrs function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Attributes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp
index dd47814d97..0f3efa7b9d 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.