Remove the bitwise AND operators from the Attributes class. Replace it with the equiv...
[oota-llvm.git] / lib / Transforms / InstCombine / InstCombineCalls.cpp
index 34e16c7aeff488692cbecdf6555ecd3bf0211b52..aa4b6b4a399f44188603aa8a9020bb9388f9cd1d 100644 (file)
@@ -1038,7 +1038,8 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
       return false;   // Cannot transform this parameter value.
 
     Attributes Attrs = CallerPAL.getParamAttributes(i + 1);
-    if (Attrs & Attributes::typeIncompatible(ParamTy))
+    if (Attributes::Builder(Attrs).
+          hasAttributes(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