[all-commits] [llvm/llvm-project] f3b5bf: [lldb] Fix NSDate test after Scalar change

Raphael Isemann via All-commits all-commits at lists.llvm.org
Wed Jul 1 07:03:00 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f3b5bf3eb7029238cead637be2e285b443b2e141
      https://github.com/llvm/llvm-project/commit/f3b5bf3eb7029238cead637be2e285b443b2e141
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2020-07-01 (Wed, 01 Jul 2020)

  Changed paths:
    M lldb/source/Plugins/Language/ObjC/CF.cpp

  Log Message:
  -----------
  [lldb] Fix NSDate test after Scalar change

The formatter was requesting an unsigned integer from the ValueObject,
but CFAbsoluteTime is a signed double, so in the NSDate test the formatter
actually just printed the 'error value' date which is the Cocoa epoch. This
started failing after the recent Scalar changes.

This patch just changes the logic to use a signed value which fits to the data
we try to read and avoids this issue.




More information about the All-commits mailing list