[PATCH] D141707: [CodeGen] Fix build failure due to missing declaration.

Francesco Petrogalli via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 13 10:28:00 PST 2023


fpetrogalli created this revision.
Herald added subscribers: ecnelises, javed.absar, hiraditya, MatzeB.
Herald added a project: All.
fpetrogalli requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The failure was reported in https://github.com/llvm/llvm-project/issues/60011

FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MachineScheduler.cpp.o
"/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c9d86 <https://reviews.llvm.org/rGaba8983c9d86793b3388e7966389e51708fba9bd>/build-llvm/./bin/clang++" -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I"/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c9d86 <https://reviews.llvm.org/rGaba8983c9d86793b3388e7966389e51708fba9bd>/build-llvm/tools/clang/stage2-bins/lib/CodeGen" -I"/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c9d86 <https://reviews.llvm.org/rGaba8983c9d86793b3388e7966389e51708fba9bd>/llvm/lib/CodeGen" -I"/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c9d86 <https://reviews.llvm.org/rGaba8983c9d86793b3388e7966389e51708fba9bd>/build-llvm/tools/clang/stage2-bins/include" -I"/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c9d86 <https://reviews.llvm.org/rGaba8983c9d86793b3388e7966389e51708fba9bd>/llvm/include" -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -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 -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c9d86 <https://reviews.llvm.org/rGaba8983c9d86793b3388e7966389e51708fba9bd>/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c9d86 <https://reviews.llvm.org/rGaba8983c9d86793b3388e7966389e51708fba9bd>/= -no-canonical-prefixes -O2 -DNDEBUG -g1  -fno-exceptions -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MachineScheduler.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MachineScheduler.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MachineScheduler.cpp.o -c '/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c9d86 <https://reviews.llvm.org/rGaba8983c9d86793b3388e7966389e51708fba9bd>/llvm/lib/CodeGen/MachineScheduler.cpp'
/build/llvm-toolchain-snapshot-16~++20230113111109+aba8983c9d86 <https://reviews.llvm.org/rGaba8983c9d86793b3388e7966389e51708fba9bd>/llvm/lib/CodeGen/MachineScheduler.cpp:2639:7: error: use of undeclared identifier 'MISchedDumpReservedCycles'

  if (MISchedDumpReservedCycles)
      ^

1 error generated.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141707

Files:
  llvm/lib/CodeGen/MachineScheduler.cpp


Index: llvm/lib/CodeGen/MachineScheduler.cpp
===================================================================
--- llvm/lib/CodeGen/MachineScheduler.cpp
+++ llvm/lib/CodeGen/MachineScheduler.cpp
@@ -101,6 +101,7 @@
 #else
 const bool ViewMISchedDAGs = false;
 const bool PrintDAGs = false;
+const bool MISchedDumpReservedCycles = false;
 #endif // NDEBUG
 
 } // end namespace llvm


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141707.489059.patch
Type: text/x-patch
Size: 384 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230113/65ef6586/attachment.bin>


More information about the llvm-commits mailing list