[llvm-dev] llvm-mc-assemble-fuzzer broken

Davide Italiano via llvm-dev llvm-dev at lists.llvm.org
Fri May 4 14:53:04 PDT 2018


While playing with sanitizer in a downstream project, I found out this.

/Users/davide/work/llvm-monorepo/llvm-project-20170507/llvm/tools/llvm-mc-assemble-fuzzer/llvm-mc-assemble-fuzzer.cpp:207:32:
error: reference to type 'std::unique_ptr<MCCodeEmitter>' could not
bind to an
 lvalue of type 'llvm::MCCodeEmitter *'
        UseDwarfDirectory, IP, CE, MAB, ShowInst));
                               ^~
/Users/davide/work/llvm-monorepo/llvm-project-20170507/llvm/include/llvm/Support/TargetRegistry.h:514:66:
note: passing argument to parameter 'CE' here
                                std::unique_ptr<MCCodeEmitter> &&CE,
                                                                 ^
/Users/davide/work/llvm-monorepo/llvm-project-20170507/llvm/tools/llvm-mc-assemble-fuzzer/llvm-mc-assemble-fuzzer.cpp:232:55:
error: too many arguments to function call, expected 3, have 4
                                                      MCOptions);
                                                      ^~~~~~~~~
/Users/davide/work/llvm-monorepo/llvm-project-20170507/llvm/include/llvm/Support/TargetRegistry.h:401:3:
note: 'createMCAsmBackend' declared here
  MCAsmBackend *createMCAsmBackend(const MCSubtargetInfo &STI,
  ^
2 errors generated.

Apparently, this has been broken for several months. I think I can fix
this particular instance, but I was wondering whether anybody cares
about this tool?

-- 
Davide

"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare


More information about the llvm-dev mailing list