无法在llvm中施放康斯坦丁

无法在llvm中施放康斯坦丁,llvm,Llvm,以下代码: ConstantInt * Idx = cast<ConstantInt>(gepi->getOperand(2)); 我不知道为什么这个角色不起作用。我正在使用LLVM3.1。有什么帮助吗?将#包括添加到源代码。将#包括添加到源代码 error: invalid use of incomplete type ‘struct llvm::ConstantInt’ error: forward declaration of ‘struct llvm::Constan

以下代码:

ConstantInt * Idx = cast<ConstantInt>(gepi->getOperand(2));
我不知道为什么这个角色不起作用。我正在使用LLVM3.1。有什么帮助吗?

#包括
添加到源代码。

#包括
添加到源代码

error: invalid use of incomplete type ‘struct llvm::ConstantInt’
error: forward declaration of ‘struct llvm::ConstantInt’