[llvm-commits] [dragonegg] r165706 - /dragonegg/trunk/src/TypeConversion.cpp
Bill Wendling
isanbard at gmail.com
Thu Oct 11 00:06:03 PDT 2012
Author: void
Date: Thu Oct 11 02:06:03 2012
New Revision: 165706
URL: http://llvm.org/viewvc/llvm-project?rev=165706&view=rev
Log:
One more syntax fix to get buildbots working.
Modified:
dragonegg/trunk/src/TypeConversion.cpp
Modified: dragonegg/trunk/src/TypeConversion.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/TypeConversion.cpp?rev=165706&r1=165705&r2=165706&view=diff
==============================================================================
--- dragonegg/trunk/src/TypeConversion.cpp (original)
+++ dragonegg/trunk/src/TypeConversion.cpp Thu Oct 11 02:06:03 2012
@@ -805,7 +805,8 @@
// The value returned by a 'malloc' function does not alias anything.
if (flags & ECF_MALLOC)
- RAttributes |= Attributes::get(Attributes::Builder(Attributes::NoAlias));
+ RAttributes |=
+ Attributes::get(Attributes::Builder().addAttribute(Attributes::NoAlias));
if (RAttributes.hasAttributes())
Attrs.push_back(AttributeWithIndex::get(0, RAttributes));
@@ -878,7 +879,8 @@
// types.
tree RestrictArgTy = (DeclArgs) ? TREE_TYPE(DeclArgs) : ArgTy;
if (isa<ACCESS_TYPE>(RestrictArgTy) && TYPE_RESTRICT(RestrictArgTy))
- PAttributes |= Attributes::get(Attributes::Builder(Attributes::NoAlias));
+ PAttributes |=
+ Attributes::get(Attributes::Builder().addAttribute(Attributes::NoAlias));
#ifdef LLVM_TARGET_ENABLE_REGPARM
// Allow the target to mark this as inreg.
@@ -908,13 +910,13 @@
// write to struct arguments passed by value, but in LLVM this becomes a
// write through the byval pointer argument, which LLVM does not allow for
// readonly/readnone functions.
- if (HasByVal) {
+ if (HasByVal)
FnAttributes.removeAttribute(Attributes::ReadNone)
.removeAttribute(Attributes::ReadOnly);
assert(RetTy && "Return type not specified!");
- if (FnAttributes.hasAttribute())
+ if (FnAttributes.hasAttributes())
Attrs.push_back(AttributeWithIndex::get(~0, Attributes::get(FnAttributes)));
// Finally, make the function type and result attributes.
More information about the llvm-commits
mailing list