[all-commits] [llvm/llvm-project] 0fe753: [llvm-mc-assemble-fuzzer] Initialize MCTargetOptions.
Kai Wang via All-commits
all-commits at lists.llvm.org
Wed Jul 21 23:38:24 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0fe7531b75e54909a7cb7f7080634ab2053964ad
https://github.com/llvm/llvm-project/commit/0fe7531b75e54909a7cb7f7080634ab2053964ad
Author: Hsiangkai Wang <kai.wang at sifive.com>
Date: 2021-07-22 (Thu, 22 Jul 2021)
Changed paths:
M llvm/tools/llvm-mc-assemble-fuzzer/llvm-mc-assemble-fuzzer.cpp
Log Message:
-----------
[llvm-mc-assemble-fuzzer] Initialize MCTargetOptions.
When run the command in the llvm-mc-assemble-fuzzer document,
```
llvm-mc-fuzzer --triple=aarch64-linux-gnu --fuzzer-args -max_len=4
```
it triggers the following assertion:
```
llvm-mc-assemble-fuzzer:
llvm-project/llvm/lib/MC/MCTargetOptionsCommandFlags.cpp:38:
bool llvm::mc::getRelaxAll(): Assertion `RelaxAllView &&
"RegisterMCTargetOptionsFlags not created."' failed.
```
It is caused by no global RegisterMCTargetOptionsFlags object to initialize
the MC target options.
Differential Revision: https://reviews.llvm.org/D106417
More information about the All-commits
mailing list