X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FVMCore%2FAttributes.cpp;h=0f3efa7b9ddef7b4534a7e2ca9be962ad5e06441;hb=b5bd026a756d8650f2a94607c9b1dc34cf1c024a;hp=dd47814d97ad971cecd4be5c751aa85870a93aaf;hpb=73ddd4f00dd2a4b7b68a1500bc7e3322cab51270;p=oota-llvm.git 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.