2012-10-26 5 views
0

에 ConstantInt 캐스팅 할 수 없습니다코드에 따라 LLVM

ConstantInt * Idx = cast<ConstantInt>(gepi->getOperand(2)); 

오류 다음 생성이 캐스트가 작동하지 않습니다 이유를 모르겠어요

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

. 나는 llvm 3.1을 사용하고있다. 어떤 도움이 필요합니까?

답변

3

소스에 #include <Constants.h>을 추가하십시오.

관련 문제