Skip to content
Snippets Groups Projects
Commit e681f86f authored by Prakalp Srivastava's avatar Prakalp Srivastava
Browse files

Fixed minor bug in calculating num of dimensions while handling createNode

intrinsic.
parent 82ff1eb2
No related branches found
No related tags found
No related merge requests found
......@@ -167,7 +167,7 @@ namespace builddfg {
// Number of Dimensions would be equal to the (number of operands - 1) as
// the first operand is the pointer to associated Function and the
// remaining operands are the limits in each dimension.
int numOfDim = II->getNumOperands() - 1;
int numOfDim = II->getCalledFunction()->getFunctionType()->getNumParams()-1;
std::vector<Value*> dimLimits (numOfDim);
if (numOfDim >= 1) {
for (int i = 1; i <= numOfDim; i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment