aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Verifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore/Verifier.cpp')
-rw-r--r--lib/VMCore/Verifier.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp
index 95f871b..0f7852d 100644
--- a/lib/VMCore/Verifier.cpp
+++ b/lib/VMCore/Verifier.cpp
@@ -418,10 +418,10 @@ void Verifier::VerifyParamAttrs(const FunctionType *FT,
Attrs->getParamAttrsText(MutI) + "are incompatible!", V);
}
- uint16_t IType = ParamAttr::incompatibleWithType(FT->getParamType(Idx-1),
- Attr);
- Assert1(!IType, "Wrong type for attribute " +
- Attrs->getParamAttrsText(IType), V);
+ uint16_t TypeI =
+ Attr & ParamAttr::typeIncompatible(FT->getParamType(Idx-1));
+ Assert1(!TypeI, "Wrong type for attribute " +
+ Attrs->getParamAttrsText(TypeI), V);
if (Attr & ParamAttr::Nest) {
Assert1(!SawNest, "More than one parameter has attribute nest!", V);