C:/Compiler/llvm-project/llvm/lib/Passes/Obfuscation/compat/CallSite.h: In lambda function:
C:/Compiler/llvm-project/llvm/lib/Passes/Obfuscation/compat/CallSite.h:155:28: error: 'class llvm::Type' has no member named 'getPointerElementType'; did y
ou mean 'getStructElementType'?
155 | return V->getType()->getPointerElementType();
| ^~~~~~~~~~~~~~~~~~~~~
| getStructElementType
[1689/3788] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86PreTileConfig.cpp.obj
ninja: build stopped: subcommand failed.
cmake 构建指令:
编译环境:vmware win10 64位,MSYS2 Mingw64 toolchain 编译 llvm 版本:https://github.com/rust-lang/llvm-project/tree/rustc/17.0-2023-09-19 (17.0.2)
查阅文档似乎是 llvm17.x 中已经删除了
getPointerElementType
?参考链接:https://llvm.org/docs/OpaquePointers.html#migration-instructions