-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Issue Description
During the compilation of the IoctlCmdFinder component, the build process fails with the following error:
Annotation.cpp:277:28: error: 'getTypeAtIndex' is not a member of 'llvm::GetElementPtrInst'
277 | Ptr = GetElementPtrInst::getTypeAtIndex(CT, *IS);
| ^~~~~~~~~~~~~~This error appears to be related to a missing member function in the LLVM API used. It seems that getTypeAtIndex is either deprecated or not available in the LLVM version being used.
Steps to Reproduce
sudo docker image build --force-rm -t statefuzz_release:latest .
Logs
[ 75%] Building CXX object V4L2Processor/CMakeFiles/V4L2ProcessorPassStatic.dir/src/TypePrintHelper.cpp.o
/home/fuzz/code/difuze/InterfaceHandlers/MainAnalysisPasses/IoctlCmdFinder/src/Annotation.cpp: In function 'std::string KIntAnnotation::getStructId(llvm::Value*, llvm::Use*&, llvm::Use*&, llvm::Module*)':
/home/fuzz/code/difuze/InterfaceHandlers/MainAnalysisPasses/IoctlCmdFinder/src/Annotation.cpp:277:28: error: 'getTypeAtIndex' is not a member of 'llvm::GetElementPtrInst'
277 | Ptr = GetElementPtrInst::getTypeAtIndex(CT, *IS);
| ^~~~~~~~~~~~~~
make[2]: *** [IoctlCmdFinder/CMakeFiles/IoctlCmdPassStatic.dir/build.make:63: IoctlCmdFinder/CMakeFiles/IoctlCmdPassStatic.dir/src/Annotation.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....