[all-commits] [llvm/llvm-project] e37de5: Fix UB in DwarfExpression::emitLegacyZExt()
adrian-prantl via All-commits
all-commits at lists.llvm.org
Tue Jan 25 13:53:14 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e37de5d36e3190283916604342b029859129e2a4
https://github.com/llvm/llvm-project/commit/e37de5d36e3190283916604342b029859129e2a4
Author: Adrian Prantl <aprantl at apple.com>
Date: 2022-01-25 (Tue, 25 Jan 2022)
Changed paths:
M llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
M llvm/test/DebugInfo/X86/convert-debugloc.ll
Log Message:
-----------
Fix UB in DwarfExpression::emitLegacyZExt()
A shift-left > 63 triggers a UBSAN failure. This patch kicks the can
down the road (to the consumer) by emitting a more compact
representation of the shift computation in DWARF expressions.
Differential Revision: https://reviews.llvm.org/D118183
Commit: 37ef303aa71a1594d42587871d2e1eb1deeeff0f
https://github.com/llvm/llvm-project/commit/37ef303aa71a1594d42587871d2e1eb1deeeff0f
Author: Adrian Prantl <aprantl at apple.com>
Date: 2022-01-25 (Tue, 25 Jan 2022)
Changed paths:
M llvm/include/llvm/Support/AllocatorBase.h
Log Message:
-----------
Add missing include diagnosed by the modules build.
Compare: https://github.com/llvm/llvm-project/compare/a676bdb5d65b...37ef303aa71a
More information about the All-commits
mailing list