Expand ParameterAttributes to 32 bits (in preparation
[oota-llvm.git] / lib / VMCore / Function.cpp
index ec34abc10671cbc54e14e22b3a2a13cd40c6d45e..cbe11f0b6c55fe08450794bc307a9b47e925aedf 100644 (file)
@@ -139,8 +139,8 @@ void Function::eraseFromParent() {
 }
 
 /// @brief Determine whether the function has the given attribute.
-bool Function::paramHasAttr(uint16_t i, unsigned attr) const {
-  return ParamAttrs && ParamAttrs->paramHasAttr(i, (ParameterAttributes)attr);
+bool Function::paramHasAttr(uint16_t i, ParameterAttributes attr) const {
+  return ParamAttrs && ParamAttrs->paramHasAttr(i, attr);
 }
 
 /// @brief Determine if the function cannot return.
@@ -365,7 +365,7 @@ const FunctionType *Intrinsic::getType(ID id, const Type **Tys,
 
 const ParamAttrsList *Intrinsic::getParamAttrs(ID id) {
   ParamAttrsVector Attrs;
-  uint16_t Attr = ParamAttr::None;
+  ParameterAttributes Attr = ParamAttr::None;
 
 #define GET_INTRINSIC_ATTRIBUTES
 #include "llvm/Intrinsics.gen"