1. Mar 08, 2019
    • Davide Italiano's avatar
      [testsuite] Drop characters that can't be decoded, restoring parity with Py2. · bd53e768
      Davide Italiano authored
      Tests that check the output of `memory find` may trip over
      unreadable characters, and in Python 3 this is an error.
      
      llvm-svn: 355612
      bd53e768
    • Jan Kratochvil's avatar
      Fix TestDataFormatter.test uninitialized variable · 8a4efd21
      Jan Kratochvil authored
      After D55626 I see a failure in my Fedora buildbot.
      
      There is uninitialized variable as the Foo constructor has not been run and foo
      is an autovariable.
      
      (lldb) breakpoint set -f foo.cpp -l 11
      Breakpoint 1: where = TestDataFormatter.test.tmp.out`main + 30 at foo.cpp:11:7, address = 0x000000000040112e
      (lldb) run
      Process 801065 stopped
      * thread #1, name = 'TestDataFormatt', stop reason = breakpoint 1.1
          frame #0: 0x000000000040112e TestDataFormatter.test.tmp.out`main(argc=1, argv=0x00007fffffffcc48) at foo.cpp:11:7
         8   	};
         9
         10  	int main(int argc, char **argv) {
      -> 11  	  Foo foo(1, 2.22);
         12  	  return 0;
         13  	}
      
      Process 801065 launched: '.../tools/lldb/lit/Reproducer/Functionalities/Output/TestDataFormatter.test.tmp.out' (x86_64)
      (lldb) frame var
      (int) argc = 1
      (char **) argv = 0x00007fffffffcc48
      (Foo) foo = (m_i = 4198432, m_d = 0)
      
      While the testcase expects m_i will be 0.
      
      Differential Revision: https://reviews.llvm.org/D59088
      
      llvm-svn: 355611
      8a4efd21
    • Jonas Devlieghere's avatar
      [Reproducers] Disable registering lldb::thread_t everywhere · 0ccc0b1a
      Jonas Devlieghere authored
      As discussed on the mailing list, default serialization for thread ids
      is not correct, even if they're represented as basic types. I'm
      purposely leaving the corresponding record macros in place so that we
      don't break the API boundary detection.
      
      llvm-svn: 355610
      0ccc0b1a
    • Anastasia Stulova's avatar
      [Sema] Change addr space diagnostics in casts to follow C++ style. · 6f7c536e
      Anastasia Stulova authored
      This change adds a new diagnostic for mismatching address spaces
      to be used for C++ casts (only enabled in C style cast for now,
      the rest will follow!).
      
      The change extends C-style cast rules to account for address spaces.
      It also adds a separate function for address space cast checking that
      can be used to map from a separate address space cast operator
      addrspace_cast (to be added as a follow up patch).
      
      Note, that after this change clang will no longer allows arbitrary
      address space conversions in reinterpret_casts because they can lead
      to accidental errors. The implicit safe conversions would still be
      allowed.
      
      Differential Revision: https://reviews.llvm.org/D58346
      
      llvm-svn: 355609
      6f7c536e
    • Anastasia Stulova's avatar
      [PR40778][Sema] Adjust addr space of operands in builtin operators. · 27e5c212
      Anastasia Stulova authored
      Adjust address space for references and pointer operands of builtin operators.
      
      Currently this change only fixes addr space in assignment (= and |=) operator,
      that is needed for the test case reported in the bug. Wider support for all
      other operations will follow.
      
      Differential Revision: https://reviews.llvm.org/D58719
      
      llvm-svn: 355608
      27e5c212
    • Petar Jovanovic's avatar
      [DebugInfo] Fix the type of the formated variable · 95817d36
      Petar Jovanovic authored
      Change the format type of *Personality and *LSDAAddress to PRIx64 since
      they are of type uint64_t.
      The problem was detected on mips builds, where it was printing junk values
      and causing test failure.
      
      Patch by Milos Stojanovic.
      
      Differential Revision: https://reviews.llvm.org/D58451
      
      llvm-svn: 355607
      95817d36
    • Anastasia Stulova's avatar
      [PR40778] Preserve addr space in Derived to Base cast. · 94049554
      Anastasia Stulova authored
      The address space for the Base class pointer when up-casting
      from Derived should be taken from the Derived class pointer.
      
      Differential Revision: https://reviews.llvm.org/D53818
      
      llvm-svn: 355606
      94049554
  2. Mar 07, 2019