aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/InstCombine/InstCombineCalls.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-14 07:52:48 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-14 07:52:48 +0000
commit1feacad0ca033e7e8f2f557a0d7fa5acc4076080 (patch)
tree5df17f7192f926f217cb89c5f224473820aa4dfc /lib/Transforms/InstCombine/InstCombineCalls.cpp
parentc416795feaaa2052f7b46fa7a3f9b6ec3751b1eb (diff)
downloadexternal_llvm-1feacad0ca033e7e8f2f557a0d7fa5acc4076080.zip
external_llvm-1feacad0ca033e7e8f2f557a0d7fa5acc4076080.tar.gz
external_llvm-1feacad0ca033e7e8f2f557a0d7fa5acc4076080.tar.bz2
Remove the bitwise AND operators from the Attributes class. Replace it with the equivalent from the builder class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165896 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r--lib/Transforms/InstCombine/InstCombineCalls.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp
index 34e16c7..aa4b6b4 100644
--- a/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -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