Repository: go
Issue: gollvm: GoStatepoints.cpp:1433:50: error: no member named 'getElementType' in 'llvm::PointerType'
Labels: NeedsFix

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<PointerType>(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<PointerType>(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.