This is an archive of the discontinued LLVM Phabricator instance.

Add checkMulAdd helper function to CheckedArithmetic
ClosedPublic

Authored by george.karpenkov on Jun 13 2018, 10:57 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

NoQ accepted this revision.Jun 13 2018, 11:12 AM
NoQ added inline comments.
llvm/include/llvm/Support/CheckedArithmetic.h
65–67 ↗(On Diff #151201)

if (llvm::Optional<T> Product = checkedMul(A, B)) { ... }

This revision is now accepted and ready to land.Jun 13 2018, 11:12 AM
This revision was automatically updated to reflect the committed changes.