Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gollvm: GoStatepoints.cpp:1433:50: error: no member named 'getElementType' in 'llvm::PointerType' #51588

Open
advancedwebdeveloper opened this issue Mar 10, 2022 · 3 comments
Labels
NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@advancedwebdeveloper
Copy link

2022-03-10T11:14:16.9117262Z FAILED: tools/gollvm/passes/CMakeFiles/LLVMCppGoPasses.dir/GoStatepoints.cpp.o
2022-03-10T11:14:16.9123244Z /usr/bin/clang++-10 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/build_min/tools/gollvm/passes -I/home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/passes -I/home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/build_min/include -I/home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Os -DNDEBUG -fno-exceptions -fno-rtti -std=c++14 -MD -MT tools/gollvm/passes/CMakeFiles/LLVMCppGoPasses.dir/GoStatepoints.cpp.o -MF tools/gollvm/passes/CMakeFiles/LLVMCppGoPasses.dir/GoStatepoints.cpp.o.d -o tools/gollvm/passes/CMakeFiles/LLVMCppGoPasses.dir/GoStatepoints.cpp.o -c /home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp
2022-03-10T11:14:16.9127681Z /home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp:1433:50: error: no member named 'getElementType' in 'llvm::PointerType'
2022-03-10T11:14:16.9128685Z Type *T = cast(V->getType())->getElementType();
2022-03-10T11:14:16.9129281Z ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
2022-03-10T11:14:16.9131080Z /home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp:2027:5: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
2022-03-10T11:14:16.9132005Z for (auto Attr : FnAttrsToStrip)
2022-03-10T11:14:16.9133782Z ^
2022-03-10T11:14:16.9134762Z /home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp:2024:3: note: previous statement is here
2022-03-10T11:14:16.9136094Z if (isa(F.getReturnType()))
2022-03-10T11:14:16.9136576Z ^
2022-03-10T11:14:16.9137715Z /home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp:2182:11: warning: 'insertEdge' is deprecated: Use applyUpdates() instead. [-Wdeprecated-declarations]
2022-03-10T11:14:16.9138447Z DTU.insertEdge(Old, PadBB);
2022-03-10T11:14:16.9138773Z ^
2022-03-10T11:14:16.9140973Z /home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/include/llvm/Analysis/DomTreeUpdater.h:159:3: note: 'insertEdge' has been explicitly marked deprecated here
2022-03-10T11:14:16.9141749Z LLVM_ATTRIBUTE_DEPRECATED(void insertEdge(BasicBlock *From, BasicBlock *To),
2022-03-10T11:14:16.9142128Z ^
2022-03-10T11:14:16.9142916Z /home/runner/work/gollvm_build_process/gollvm_build_process/gollvm_build_process/llvm-project/llvm/include/llvm/Support/Compiler.h:319:52: note: expanded from macro 'LLVM_ATTRIBUTE_DEPRECATED'
2022-03-10T11:14:16.9143557Z #define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl
2022-03-10T11:14:16.9144375Z ^
2022-03-10T11:14:16.9144716Z 2 warnings and 1 error generated.

@advancedwebdeveloper
Copy link
Author

CC @iant @thanm

@advancedwebdeveloper
Copy link
Author

@thanm
Copy link
Contributor

thanm commented Mar 10, 2022

Thanks. I am working on a patch for this, but I have been bogged down with other tasks.

@heschi heschi added the NeedsFix The path to resolution is known, but the work has not been done. label Mar 14, 2022
@heschi heschi added this to the Backlog milestone Mar 14, 2022
advancedwebdeveloper pushed a commit to advancedwebdeveloper/gollvm_build_process that referenced this issue Mar 16, 2022
@seankhliao seankhliao modified the milestones: Backlog, gollvm Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

4 participants