<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=GB2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,all<br>
I have a Value* type named indexValue, and the type is i32.<br>
I think "indexValue" must hold a number which type is int.<br>
Now I want to use the exact number which pointed by indexValue , so
I do like this:<br>
<br>
<font color="#00cccc">ConstantInt* CI =
llvm::cast<llvm::ConstantInt>(indexValue); //This is wrong,
so is dyn_cast. <br>
uint64_t index = indexValue->getZExtValue();<br>
uint64_t size = index + 1;</font><br>
<br>
<br>
I don't know if it is the right way.<br>
So, could anybody tell the way to get the integer content from a
Value* which type is i32?<br>
<br>
I'll be very very grateful if there is any answer.<br>
</body>
</html>