[llvm-commits] [dragonegg] r165637 - /dragonegg/trunk/src/TypeConversion.cpp
Bill Wendling
isanbard at gmail.com
Wed Oct 10 11:03:18 PDT 2012
Author: void
Date: Wed Oct 10 13:03:18 2012
New Revision: 165637
URL: http://llvm.org/viewvc/llvm-project?rev=165637&view=rev
Log:
Use correct call when creating attributes.
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=165637&r1=165636&r2=165637&view=diff
==============================================================================
--- dragonegg/trunk/src/TypeConversion.cpp (original)
+++ dragonegg/trunk/src/TypeConversion.cpp Wed Oct 10 13:03:18 2012
@@ -643,13 +643,13 @@
static Attributes HandleArgumentExtension(tree ArgTy) {
if (isa<BOOLEAN_TYPE>(ArgTy)) {
if (TREE_INT_CST_LOW(TYPE_SIZE(ArgTy)) < INT_TYPE_SIZE)
- return Attributes::get(Attributes::Builder(Attributes::ZExt));
+ return Attributes::get(Attributes::Builder().addAttribute(Attributes::ZExt));
} else if (isa<INTEGER_TYPE>(ArgTy) &&
TREE_INT_CST_LOW(TYPE_SIZE(ArgTy)) < INT_TYPE_SIZE) {
if (TYPE_UNSIGNED(ArgTy))
- return Attributes::get(Attributes::Builder(Attributes::ZExt));
+ return Attributes::get(Attributes::Builder().addAttribute(Attributes::ZExt));
else
- return Attributes::get(Attributes::Builder(Attributes::SExt));
+ return Attributes::get(Attributes::Builder().addAttribute(Attributes::SExt));
}
return Attribute();
More information about the llvm-commits
mailing list