aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorRaman Tenneti <rtenneti@google.com>2021-02-22 18:03:11 -0800
committerRaman Tenneti <rtenneti@google.com>2021-02-22 18:37:40 -0800
commit034f5629256c810ecf4805911e3fe407e562f3b7 (patch)
tree9d5dac59c22675ac986c33a57be9e2693fd4f7e2 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent7424efd5ad57d18de65e1a5e572a04e1348a7e04 (diff)
downloadllvm-034f5629256c810ecf4805911e3fe407e562f3b7.zip
llvm-034f5629256c810ecf4805911e3fe407e562f3b7.tar.gz
llvm-034f5629256c810ecf4805911e3fe407e562f3b7.tar.bz2
Changes to mktime to handle invalid dates, overflow and underflow andcalculating the correct date and thenumber of seconds even if invalid datesare passed as arguments.
Added tests for invalid dates like the following Date 1970-01-01 00:00:-1 is treated as 1969-12-31 23:59:59 and seconds are returned for the modified date. Tested the code by doing ninja check-libc (and cmake). Reviewed By: sivachandra, rtenneti Differential Revision: https://reviews.llvm.org/D96684
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions