This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Fix a potential issue in shouldInsertFixupForCodeAlign()
ClosedPublic

Authored by edward-jones on Jun 13 2019, 10:27 AM.

Details

Summary

The bool result of shouldInsertExtraNopBytesForCodeAlign() is not checked but the returned nop count is unconditionally read even though it could be uninitialized.

Diff Detail

Repository
rL LLVM