HomePhabricator

Utility functions for checked arithmetic

Authored by george.karpenkov on Mar 1 2018, 4:30 PM.

Description

Utility functions for checked arithmetic

Provide checkedAdd and checkedMul functions, providing checked
arithmetic on signed integers.

Differential Revision: https://reviews.llvm.org/D43704

llvm-svn: 326516