diff options
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp | 6 | ||||
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 6 | 
2 files changed, 6 insertions, 6 deletions
| diff --git a/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp b/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp index fd23a935b90..c7429c59546 100644 --- a/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp +++ b/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp @@ -717,9 +717,9 @@ bool DAE::RemoveDeadStuffFromFunction(Function *F) {    // here. Currently, this should not be possible, but special handling might be    // required when new return value attributes are added.    if (NRetTy->isVoidTy()) -    RAttrs &= ~Attribute::typeIncompatible(NRetTy); +    RAttrs &= ~Attributes::typeIncompatible(NRetTy);    else -    assert((RAttrs & Attribute::typeIncompatible(NRetTy)) == 0 +    assert((RAttrs & Attributes::typeIncompatible(NRetTy)) == 0             && "Return attributes no longer compatible?");    if (RAttrs) @@ -786,7 +786,7 @@ bool DAE::RemoveDeadStuffFromFunction(Function *F) {      Attributes RAttrs = CallPAL.getRetAttributes();      Attributes FnAttrs = CallPAL.getFnAttributes();      // Adjust in case the function was changed to return void. -    RAttrs &= ~Attribute::typeIncompatible(NF->getReturnType()); +    RAttrs &= ~Attributes::typeIncompatible(NF->getReturnType());      if (RAttrs)        AttributesVec.push_back(AttributeWithIndex::get(0, RAttrs)); diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 486dd1312a4..cf8375649f4 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -1037,7 +1037,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {      if (!CallerPAL.isEmpty() && !Caller->use_empty()) {        Attributes RAttrs = CallerPAL.getRetAttributes(); -      if (RAttrs & Attribute::typeIncompatible(NewRetTy)) +      if (RAttrs & Attributes::typeIncompatible(NewRetTy))          return false;   // Attribute not compatible with transformed value.      } @@ -1067,7 +1067,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {        return false;   // Cannot transform this parameter value.      Attributes Attrs = CallerPAL.getParamAttributes(i + 1); -    if (Attrs & Attribute::typeIncompatible(ParamTy)) +    if (Attrs & Attributes::typeIncompatible(ParamTy))        return false;   // Attribute not compatible with transformed value.      // If the parameter is passed as a byval argument, then we have to have a @@ -1141,7 +1141,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {    // If the return value is not being used, the type may not be compatible    // with the existing attributes.  Wipe out any problematic attributes. -  RAttrs &= ~Attribute::typeIncompatible(NewRetTy); +  RAttrs &= ~Attributes::typeIncompatible(NewRetTy);    // Add the new return attributes.    if (RAttrs) | 

