The absolute value of 0x8000000000000000 does not fit into an int64_t and UBSan tells us that by crashing.
rdar://98799670
Paths 
  |  Differential  D132194  
Fix UB in DIExpression::appendOffset() ClosedPublic Authored by aprantl on Aug 18 2022, 6:41 PM. 
Details 
 Summary The absolute value of 0x8000000000000000 does not fit into an int64_t and UBSan tells us that by crashing. rdar://98799670 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Aug 18 2022, 8:21 PM 
 This revision was landed with ongoing or failed builds.Aug 19 2022, 9:17 AM Closed by commit rG2d48b403f6e2: Fix UB in DIExpression::appendOffset() (authored by aprantl).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
 
Revision Contents 
 
Diff 454044 llvm/lib/IR/DebugInfoMetadata.cpp
 llvm/test/DebugInfo/salvage-overflow.ll
 
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nit: the else appears to have gone missing