Rather than invoking emitFill with negative size, which may trigger
an undefined behavior, return immediately after emitting the warning.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This triggers an error on ubsan build because of an invalid shift in MCStreamer::emitFill because of the negative Size. This is not a bug; even though Expr has an incorrect value, it's never used because NumValues is set to 0, but we want to avoid further ubsan failures.