1. Apr 27, 2012
    • Bill Wendling's avatar
      Merging r155668: · 5f15b4e8
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155668 | atrick | 2012-04-26 14:48:25 -0700 (Thu, 26 Apr 2012) | 8 lines
      
      Fix the SD scheduler to avoid gluing the same node twice.
      
      DAGCombine strangeness may result in multiple loads from the same
      offset. They both may try to glue themselves to another load. We could
      insist that the redundant loads glue themselves to each other, but the
      beter fix is to bail out from bad gluing at the time we detect it.
      
      Fixes rdar://11314175: BuildSchedUnits assert.
      ------------------------------------------------------------------------
      
      llvm-svn: 155672
      5f15b4e8
    • Bill Wendling's avatar
      Merging r155670: · 988b10e3
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155670 | efriedma | 2012-04-26 15:43:24 -0700 (Thu, 26 Apr 2012) | 3 lines
      
      Add a missing ExpressionEvaluationContext for template default arguments.  Fixes PR12581.
      
      
      ------------------------------------------------------------------------
      
      llvm-svn: 155671
      988b10e3
  2. Apr 26, 2012
    • Bill Wendling's avatar
      Merging r155576: · 584eaadb
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155576 | akirtzidis | 2012-04-25 11:39:17 -0700 (Wed, 25 Apr 2012) | 4 lines
      
      When resolving default template arguments, it should be done in the declaration context
      of the template what we are going to instantiate.
      
      Fixes various crashes of rdar://11242625 & http://llvm.org/PR11421.
      ------------------------------------------------------------------------
      
      llvm-svn: 155582
      584eaadb
    • Bill Wendling's avatar
      Merging r155536: · ea5f85ee
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155536 | lattner | 2012-04-24 23:37:20 -0700 (Tue, 24 Apr 2012) | 3 lines
      
      openbsd doesn't support soname, patch by Brad Smith!
      
      
      ------------------------------------------------------------------------
      
      llvm-svn: 155574
      ea5f85ee
    • Bill Wendling's avatar
      Merging r155535: · f242e238
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155535 | lattner | 2012-04-24 23:12:24 -0700 (Tue, 24 Apr 2012) | 5 lines
      
      OpenBSD: Remove incorrect -pthread preprocessor define _POSIX_THREADS and replace
      with _REENTRANT. Also remove undef _POSIX_THREADS in phread.h.
      
      Patch by Brad Smith!
      
      ------------------------------------------------------------------------
      
      llvm-svn: 155573
      f242e238
    • Bill Wendling's avatar
      Merging r155534: · 67cd5dee
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155534 | lattner | 2012-04-24 23:09:30 -0700 (Tue, 24 Apr 2012) | 3 lines
      
      don't use soname on OpenBSD, it doesn't support it.  Patch by
      Brad Smith!
      
      ------------------------------------------------------------------------
      
      llvm-svn: 155572
      67cd5dee
  3. Apr 25, 2012
    • Bill Wendling's avatar
      Merging r155466: · 181a72c0
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155466 | chandlerc | 2012-04-24 11:42:47 -0700 (Tue, 24 Apr 2012) | 17 lines
      
      Fix a crash on valid (if UB) bitcode that is produced for some global
      constants in C++11 mode. I have no idea why it required such particular
      circumstances to get here, the code seems clearly to rely upon unchecked
      assumptions.
      
      Specifically, when we decide to form an index into a struct type, we may
      have gone through (at least one) zero-length array indexing round, which
      would have left the offset un-adjusted, and thus not necessarily valid
      for use when indexing the struct type.
      
      This is just an canonicalization step, so the correct thing is to refuse
      to canonicalize nonsensical GEPs of this form. Implemented, and test
      case added.
      
      Fixes PR12642. Pair debugged and coded with Richard Smith. =] I credit
      him with most of the debugging, and preventing me from writing the wrong
      code.
      ------------------------------------------------------------------------
      
      llvm-svn: 155506
      181a72c0
  4. Apr 24, 2012
    • Bill Wendling's avatar
      Merging r155287: · 98eaa463
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155287 | chapuni | 2012-04-21 08:31:45 -0700 (Sat, 21 Apr 2012) | 3 lines
      
      llvm/lib/Target: [PR12611] Add "llvm/Support/raw_ostream.h" for Debug build on MSVC.
      
      Thanks to Andy Gibbs, to report the issue.
      ------------------------------------------------------------------------
      
      llvm-svn: 155378
      98eaa463
    • Bill Wendling's avatar
      Merging r155286: · 483a943c
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155286 | chapuni | 2012-04-21 08:31:36 -0700 (Sat, 21 Apr 2012) | 1 line
      
      HexagonISelLowering.cpp: Reorder #includes.
      ------------------------------------------------------------------------
      
      llvm-svn: 155377
      483a943c
    • Bill Wendling's avatar
      Merging r155342: · 047e6ff2
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155342 | asl | 2012-04-23 02:02:13 -0700 (Mon, 23 Apr 2012) | 3 lines
      
      Do not use stdint.h, driver might provide invalid location for it. Instead, provide the types directly.
      This should fix PR12628
      
      ------------------------------------------------------------------------
      
      llvm-svn: 155376
      047e6ff2
    • Bill Wendling's avatar
      Merging r155288: · 2cd7132e
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155288 | d0k | 2012-04-21 09:05:27 -0700 (Sat, 21 Apr 2012) | 6 lines
      
      Remove unused PointerLikeTypeTraits for IndexListEntry.
      
      It set NumLowBitAvailable = 3 which may not be true on all platforms.  We only
      ever use 2 bits (the default) so this assumption can be safely removed
      
      Should fix PR12612.
      ------------------------------------------------------------------------
      
      llvm-svn: 155375
      2cd7132e
    • Bill Wendling's avatar
      Merging r155342: · 82341373
      Bill Wendling authored
      ------------------------------------------------------------------------
      
      llvm-svn: 155374
      82341373
  5. Apr 23, 2012
    • Bill Wendling's avatar
      Merging r155285: · 8d6eb8e5
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155285 | chapuni | 2012-04-21 07:51:02 -0700 (Sat, 21 Apr 2012) | 1 line
      
      CMake: Enable LLVM_COMPILER_JOBS on all MS IDEs. We don't support older environments than VS9.
      ------------------------------------------------------------------------
      
      llvm-svn: 155335
      8d6eb8e5
    • Bill Wendling's avatar
      Merging r155284: · 30f2ef37
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155284 | chapuni | 2012-04-21 07:50:56 -0700 (Sat, 21 Apr 2012) | 1 line
      
      CMake: Prune redundant LLVM_COMPILER_JOBS from llvm/CMakeLists.txt. HandleLLVMOptions.cmake has it.
      ------------------------------------------------------------------------
      
      llvm-svn: 155334
      30f2ef37
  6. Apr 22, 2012
    • Bill Wendling's avatar
      Merging r155307: · 4ea5fe07
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155307 | void | 2012-04-22 00:23:04 -0700 (Sun, 22 Apr 2012) | 1 line
      
      Remove some potential warnings about variables used uninitialized.
      ------------------------------------------------------------------------
      
      llvm-svn: 155308
      4ea5fe07
    • Bill Wendling's avatar
      Inline a variable that's used only in an assert. · d5920bc1
      Bill Wendling authored
      llvm-svn: 155306
      d5920bc1
    • Bill Wendling's avatar
      Merging r155279: · 28781611
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155279 | chapuni | 2012-04-21 02:40:04 -0700 (Sat, 21 Apr 2012) | 1 line
      
      SemaDeclCXX.cpp: Fix utf8 in comment.
      ------------------------------------------------------------------------
      
      llvm-svn: 155295
      28781611
  7. Apr 21, 2012
    • Bill Wendling's avatar
      Merging r155230: · 6f8e5403
      Bill Wendling authored
      ------------------------------------------------------------------------
      r155230 | void | 2012-04-20 13:31:44 -0700 (Fri, 20 Apr 2012) | 1 line
      
      Modify the sh-bang to run out-of-the-box for FreeBSDes.
      ------------------------------------------------------------------------
      
      llvm-svn: 155231
      6f8e5403
  8. Apr 19, 2012