Index: src/IceIntrinsics.cpp |
diff --git a/src/IceIntrinsics.cpp b/src/IceIntrinsics.cpp |
index b1ca40ddf6c1ba862a5dc9415c6e36d404731bd9..1dc25cc44626de24c8ada0494c2635177259f47f 100644 |
--- a/src/IceIntrinsics.cpp |
+++ b/src/IceIntrinsics.cpp |
@@ -315,17 +315,17 @@ bool Intrinsics::isMemoryOrderValid(IntrinsicID ID, uint64_t Order, |
} |
Intrinsics::ValidateCallValue |
-Intrinsics::FullIntrinsicInfo::validateCall(const Ice::InstCall *Call, |
+Intrinsics::FullIntrinsicInfo::validateCall(const InstCall *Call, |
SizeT &ArgIndex) const { |
assert(NumTypes >= 1); |
Variable *Result = Call->getDest(); |
if (Result == nullptr) { |
- if (Signature[0] != Ice::IceType_void) |
+ if (getReturnType() != IceType_void) |
return Intrinsics::BadReturnType; |
- } else if (Signature[0] != Result->getType()) { |
+ } else if (getReturnType() != Result->getType()) { |
return Intrinsics::BadReturnType; |
} |
- if (Call->getNumArgs() + 1 != NumTypes) { |
+ if (Call->getNumArgs() != getNumArgs()) { |
return Intrinsics::WrongNumOfArgs; |
} |
for (size_t i = 1; i < NumTypes; ++i) { |