1. Dec 14, 2018
    • Adam Nemet's avatar
      Revert "Try to update the test to fix the breakage With the new warning, we... · 4065da29
      Adam Nemet authored
      Revert "Try to update the test to fix the breakage With the new warning, we are showing one more output in the test."
      
      This reverts commit r349064.
      
      This wasn't updating the right test.  Causing (not the different line number
      from the previous revert):
      
      ======================================================================
      FAIL: test_diagnostic_warning (tests.cindex.test_diagnostics.TestDiagnostics)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/buildslave/jenkins/workspace/clang-stage1-configure-RA/llvm/tools/clang/bindings/python/tests/cindex/test_diagnostics.py", line 18, in test_diagnostic_warning
          self.assertEqual(len(tu.diagnostics), 2)
      AssertionError: 1 != 2
      
      llvm-svn: 349118
      4065da29
    • Adam Nemet's avatar
      Revert "Make -Wstring-plus-int warns even if when the result is not out of bounds" · cbb8aa19
      Adam Nemet authored
      This reverts commit r349054.
      
      It's causing:
      
      FAILED: tools/clang/bindings/python/tests/CMakeFiles/check-clang-python
      FAIL: test_diagnostic_range (tests.cindex.test_diagnostics.TestDiagnostics)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File
        "/Users/buildslave/jenkins/workspace/clang-stage1-configure-RA/llvm/tools/clang/bindings/python/tests/cindex/test_diagnostics.py",
        line 55, in test_diagnostic_range
            self.assertEqual(len(tu.diagnostics), 1)
            AssertionError: 2 != 1
      
      ======================================================================
      FAIL: test_diagnostic_warning (tests.cindex.test_diagnostics.TestDiagnostics)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File
        "/Users/buildslave/jenkins/workspace/clang-stage1-configure-RA/llvm/tools/clang/bindings/python/tests/cindex/test_diagnostics.py",
        line 18, in test_diagnostic_warning
            self.assertEqual(len(tu.diagnostics), 2)
            AssertionError: 1 != 2
      
      llvm-svn: 349117
      cbb8aa19
    • Vlad Tsyrklevich's avatar
      Windows ASan: Instrument _msize_base() · 137e23d5
      Vlad Tsyrklevich authored
      Summary:
      A recent update to the VS toolchain in chromium [1] broke the windows
      ASan bot because the new toolchain calls _msize_base() instead of
      _msize() in a number of _aligned_* UCRT routines. Instrument
      _msize_base() as well.
      
      [1] https://crbug.com/914947
      
      Reviewers: rnk, #sanitizers, vitalybuka
      
      Reviewed By: rnk, #sanitizers, vitalybuka
      
      Subscribers: vitalybuka, kubamracek, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D55684
      
      llvm-svn: 349115
      137e23d5
    • Craig Topper's avatar
      [Builltins][X86] Provide implementations of __lzcnt16, __lzcnt, __lzcnt64 for... · 1f2b1816
      Craig Topper authored
      [Builltins][X86] Provide implementations of __lzcnt16, __lzcnt, __lzcnt64 for MS compatibility. Remove declarations from intrin.h and implementations from lzcntintrin.h
      
      intrin.h had forward declarations for these and lzcntintrin.h had implementations that were only available with -mlzcnt or a -march that supported the lzcnt feature.
      
      For MS compatibility we should always have these builtins available regardless of X86 being the target or the CPU support the lzcnt instruction. The backends should be able to gracefully fallback to something support even if its just shifts and bit ops.
      
      Unfortunately, gcc also implements 2 of the 3 function names here on X86 when lzcnt feature is enabled.
      
      This patch adds builtins for these for MSVC compatibility and drops the forward declarations from intrin.h. To keep the gcc compatibility the two intrinsics that collided have been turned into macros that use the X86 specific builtins with the lzcnt feature check. These macros are only defined when _MSC_VER is not defined. Without them being macros we can get a redefinition error because -ms-extensions doesn't seem to set _MSC_VER but does make the MS builtins available.
      
      Should fix PR40014
      
      Differential Revision: https://reviews.llvm.org/D55677
      
      llvm-svn: 349098
      1f2b1816
    • Reid Kleckner's avatar
      Silence CMP0048 warning in the benchmark utility library · 37b891ed
      Reid Kleckner authored
      I'm testing this in LLVM before sending it upstream.
      
      Part of PR38874
      
      llvm-svn: 349097
      37b891ed
    • Nico Weber's avatar
      [gn build] Add infrastructure to create symlinks and use it to create lld's symlinks · 6399234b
      Nico Weber authored
      This is slightly involved, see the comments in the code.
      
      The GN build now builds a functional lld!
      
      Differential Revision: https://reviews.llvm.org/D55606
      
      llvm-svn: 349096
      6399234b
    • Sanjay Patel's avatar
      [DAGCombiner] clean up visitEXTRACT_VECTOR_ELT · 093ab45d
      Sanjay Patel authored
      This isn't quite NFC, but I don't know how to expose
      any outward diffs from these changes. Mostly, this
      was confusing because it used 'VT' to refer to the
      operand type rather the usual type of the input node.
      
      There's also a large block at the end that is dedicated 
      solely to matching loads, but that wasn't obvious. This
      could probably be split up into separate functions to
      make it easier to see. 
      
      It's still not clear to me when we make certain transforms 
      because the legality and constant conditions are 
      intertwined in a way that might be improved.
      
      llvm-svn: 349095
      093ab45d
    • Craig Topper's avatar
      [X86] Demote EmitTest to a helper function of EmitCmp. Route all callers... · 178abc59
      Craig Topper authored
      [X86] Demote EmitTest to a helper function of EmitCmp. Route all callers except EmitCmp through EmitCmp.
      
      This requires the two callers to manifest a 0 to make EmitCmp call EmitTest.
      
      I'm looking into changing how we combine TEST and flag setting instructions to not be part of lowering. And instead be part of DAG combine or isel. Which will mean EmitTest will probably become gutted and maybe disappear entirely.
      
      llvm-svn: 349094
      178abc59
    • Evgeniy Stepanov's avatar
      Revert "Switch Android from TLS_SLOT_TSAN(8) to TLS_SLOT_SANITIZER(6)" · e6acf2c3
      Evgeniy Stepanov authored
      Breaks sanitizer-android buildbot.
      
      This reverts commit 85e02baff327e7b67ea5b47897302901abb2aa5d.
      
      llvm-svn: 349093
      e6acf2c3
    • Evgeniy Stepanov's avatar
      Revert "[hwasan] Android: Switch from TLS_SLOT_TSAN(8) to TLS_SLOT_SANITIZER(6)" · eb238ecf
      Evgeniy Stepanov authored
      Breaks sanitizer-android buildbot.
      
      This reverts commit af8443a984c3b491c9ca2996b8d126ea31e5ecbe.
      
      llvm-svn: 349092
      eb238ecf
    • Evandro Menezes's avatar
      [AArch64] Fix Exynos predicates (NFC) · 6fe51ac9
      Evandro Menezes authored
      Fix the logic in the definition of the `ExynosShiftExPred` as a more
      specific version of `ExynosShiftPred`.  But, since `ExynosShiftExPred` is
      not used yet, this change has NFC.
      
      llvm-svn: 349091
      6fe51ac9
    • Jonathan Peyton's avatar
      [OpenMP] Fix transient divide by zero bug in 32-bit code · bdb0a2ff
      Jonathan Peyton authored
      The value returned by __kmp_now_nsec() can overflow 32-bit values causing
      incorrect values to be returned. The overflow can end up causing a divide
      by zero error because in __kmp_initialize_system_tick(), the value
      (__kmp_now_nsec() - nsec) can end up being much larger than the numerator:
      1e6 * (delay + (now - goal))
      during a pathological timing where the current time calculated is much larger
      than nsec. When this happens, the value of __kmp_ticks_per_msec is set to zero
      which is then used as the denominator in the KMP_NOW_MSEC() macro leading to
      the divide by zero error.
      
      Differential Revision: https://reviews.llvm.org/D55300
      
      llvm-svn: 349090
      bdb0a2ff
    • Jonathan Peyton's avatar
      [OpenMP] Implement OpenMP 5.0 affinity format functionality · 6d88e049
      Jonathan Peyton authored
      This patch adds the affinity format functionality introduced in OpenMP 5.0.
      This patch adds: Two new environment variables:
      
      OMP_DISPLAY_AFFINITY=TRUE|FALSE
      OMP_AFFINITY_FORMAT=<string>
      and Four new API:
      1) omp_set_affinity_format()
      2) omp_get_affinity_format()
      3) omp_display_affinity()
      4) omp_capture_affinity()
      The affinity format functionality has two ICV's associated with it:
      affinity-display-var (bool) and affinity-format-var (string).
      The affinity-display-var enables/disables the functionality through the
      envirable OMP_DISPLAY_AFFINITY. The affinity-format-var is a formatted
      string with the special field types beginning with a '%' character
      similar to printf
      For example, the affinity-format-var could be:
      "OMP: host:%H pid:%P OStid:%i num_threads:%N thread_num:%n affinity:{%A}"
      
      The affinity-format-var is displayed by every thread implicitly at the beginning
      of a parallel region when any thread's affinity has changed (including a brand
      new thread being spawned), or explicitly using the omp_display_affinity() API.
      The omp_capture_affinity() function can capture the affinity-format-var in a
      char buffer. And omp_set|get_affinity_format() allow the user to set|get the
      affinity-format-var explicitly at runtime. omp_capture_affinity() and
      omp_get_affinity_format() both return the number of characters needed to hold
      the entire string it tried to make (not including NULL character). If not
      enough buffer space is available,
      both these functions truncate their output.
      
      Differential Revision: https://reviews.llvm.org/D55148
      
      llvm-svn: 349089
      6d88e049
    • Wei Mi's avatar
      [SampleFDO] handle ProfileSampleAccurate when initializing function entry count · 66c6c5ab
      Wei Mi authored
      ProfileSampleAccurate is used to indicate the profile has exact match to the
      code to be optimized.
      
      Previously ProfileSampleAccurate is handled in ProfileSummaryInfo::isColdCallSite
      and ProfileSummaryInfo::isColdBlock. A better solution is to initialize function
      entry count to 0 when ProfileSampleAccurate is true, so we don't have to handle
      ProfileSampleAccurate in multiple places.
      
      Differential Revision: https://reviews.llvm.org/D55660
      
      llvm-svn: 349088
      66c6c5ab
    • Artem Belevich's avatar
      [CUDA] Make all host-side shadows of device-side variables undef. · 7b05666a
      Artem Belevich authored
      The host-side code can't (and should not) access the values that may
      only exist on the device side. E.g. address of a __device__ function
      does not exist on the host side as we don't generate the code for it there.
      
      Differential Revision: https://reviews.llvm.org/D55663
      
      llvm-svn: 349087
      7b05666a
    • Reid Kleckner's avatar
      Attempt to fix code completion test to handle LLP64 platforms · 82b6f98f
      Reid Kleckner authored
      llvm-svn: 349086
      82b6f98f
    • Reid Kleckner's avatar
      Fix test after -Wstring-plus-int warning was enabled · 7ac3f47f
      Reid Kleckner authored
      Use array indexing instead of addition.
      
      llvm-svn: 349085
      7ac3f47f
    • Aakanksha Patil's avatar
      Revert r348971: [AMDGPU] Support for "uniform-work-group-size" attribute · bc568766
      Aakanksha Patil authored
      This patch breaks RADV (and probably RadeonSI as well)
      
      llvm-svn: 349084
      bc568766
    • Reid Kleckner's avatar
      Fix debug-info-abspath.c on Windows by removing /tmp/t.o line · 55fa567b
      Reid Kleckner authored
      This object seemed unused, so I believe we can just remove this compiler
      invocation without losing any test coverage.
      
      llvm-svn: 349083
      55fa567b
    • Aaron Ballman's avatar
      Update the scan-build to generate SARIF. · 7d880862
      Aaron Ballman authored
      This updates the scan-build perl script to allow outputting to sarif in a more natural fashion by specifying -sarif as a command line argument, similar to how -plist is already supported.
      
      llvm-svn: 349082
      7d880862
    • Matt Arsenault's avatar
      AMDGPU/GlobalISel: Legalize/regbankselect block_addr · 934e534c
      Matt Arsenault authored
      llvm-svn: 349081
      934e534c
    • Thomas Anderson's avatar
      [libc++] Fix _LIBCPP_EXPORTED_FROM_ABI when visibility annotations are disabled · 1cffc384
      Thomas Anderson authored
      Fixes a bug where functions would get exported when building with
      -fvisibility=hidden and defining _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS. No
      visibility annotations should be added in this case.
      
      The new logic for _LIBCPP_EXPORTED_FROM_ABI matches that of the other visibility
      annotations around it.
      
      Differential Revision: https://reviews.llvm.org/D55664
      
      llvm-svn: 349080
      1cffc384
    • Nikita Popov's avatar
      Reapply "[MemCpyOpt] memset->memcpy forwarding with undef tail" · dc73a6ed
      Nikita Popov authored
      Currently memcpyopt optimizes cases like
      
          memset(a, byte, N);
          memcpy(b, a, M);
      
      to
      
          memset(a, byte, N);
          memset(b, byte, M);
      
      if M <= N. Often this allows further simplifications down the line,
      which drop the first memset entirely.
      
      This patch extends this optimization for the case where M > N, but we
      know that the bytes a[N..M] are undef due to alloca/lifetime.start.
      
      This situation arises relatively often for Rust code, because Rust does
      not initialize trailing structure padding and loves to insert redundant
      memcpys. This also fixes https://bugs.llvm.org/show_bug.cgi?id=39844.
      
      The previous version of this patch did not perform dependency checking
      properly: While the dependency is checked at the position of the memset,
      the used size must be that of the memcpy. Previously the size of the
      memset was used, which missed modification in the region
      MemSetSize..CopySize, resulting in miscompiles. The added tests cover
      variations of this issue.
      
      Differential Revision: https://reviews.llvm.org/D55120
      
      llvm-svn: 349078
      dc73a6ed
    • Dan Liew's avatar
      Implement a small subset of the C++ `type_traits` header inside... · c2e2dd43
      Dan Liew authored
      Implement a small subset of the C++ `type_traits` header inside sanitizer_common so we can avoid depending on system C++ headers.
      
      Summary:
      In particular we implement the `is_same<T,U>` templated type. This is
      useful for doing compile-time comparison of types in `static_assert`s.
      The plan is to use this in another patch (
      https://reviews.llvm.org/D54904 ).
      
      Reviewers: kcc, dvyukov, vitalybuka, cryptoad, eugenis, kubamracek, george.karpenkov
      
      Subscribers: mgorny, #sanitizers, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D54951
      
      llvm-svn: 349077
      c2e2dd43
    • Easwaran Raman's avatar
      [ThinLTO] Compute synthetic function entry count · 5a7056fa
      Easwaran Raman authored
      Summary:
      This patch computes the synthetic function entry count on the whole
      program callgraph (based on module summary) and writes the entry counts
      to the summary. After function importing, this count gets attached to
      the IR as metadata. Since it adds a new field to the summary, this bumps
      up the version.
      
      Reviewers: tejohnson
      
      Subscribers: mehdi_amini, inglorion, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D43521
      
      llvm-svn: 349076
      5a7056fa
    • Mircea Trofin's avatar
      [llvm] Address base discriminator overflow in X86DiscriminateMemOps · 41c729e7
      Mircea Trofin authored
      Summary:
      Macros are expanded on a single line. In case of large expansions,
      with sufficiently many instructions with memory operands (and when
      -fdebug-info-for-profiling is requested), we may be unable to generate
      new base discriminator values - new values overflow (base
      discriminators may not be larger than 2^12).
      
      This CL warns instead of asserting in such a case. A subsequent CL
      will add APIs to check for overflow before creating new debug info.
      
      See https://bugs.llvm.org/show_bug.cgi?id=39890
      
      Reviewers: davidxl, wmi, gbedwell
      
      Reviewed By: davidxl
      
      Subscribers: aprantl, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D55643
      
      llvm-svn: 349075
      41c729e7
    • Jordan Rupprecht's avatar
      [llvm-size][libobject] Add explicit "inTextSegment" methods similar to... · 4888c4ab
      Jordan Rupprecht authored
      [llvm-size][libobject] Add explicit "inTextSegment" methods similar to "isText" section methods to calculate size correctly.
      
      Summary:
      llvm-size uses "isText()" etc. which seem to indicate whether the section contains code-like things, not whether or not it will actually go in the text segment when in a fully linked executable.
      
      The unit test added (elf-sizes.test) shows some types of sections that cause discrepencies versus the GNU size tool. llvm-size is not correctly reporting sizes of things mapping to text/data segments, at least for ELF files.
      
      This fixes pr38723.
      
      Reviewers: echristo, Bigcheese, MaskRay
      
      Reviewed By: MaskRay
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D54369
      
      llvm-svn: 349074
      4888c4ab
    • Hyrum Wright's avatar
      [clang-tidy] Add the abseil-duration-subtraction check · 35cb7e9f
      Hyrum Wright authored
      Summary:
      This check uses the context of a subtraction expression as well as knowledge
      about the Abseil Time types, to infer the type of the second operand of some
      subtraction expressions in Duration conversions. For example:
      
         absl::ToDoubleSeconds(duration) - foo
      
      can become
         absl::ToDoubleSeconds(duration - absl::Seconds(foo))
      
      This ensures that time calculations are done in the proper domain, and also
      makes it easier to further deduce the types of the second operands to these
      expressions.
      
      Reviewed By: JonasToth
      
      Tags: #clang-tools-extra
      
      Differential Revision: https://reviews.llvm.org/D55245
      
      llvm-svn: 349073
      35cb7e9f
    • Craig Topper's avatar
      [CostModel][X86] Don't count 2 shuffles on the last level of a pairwise... · c6bfb057
      Craig Topper authored
      [CostModel][X86] Don't count 2 shuffles on the last level of a pairwise arithmetic or min/max reduction
      
      This is split from D55452 with the correct patch this time.
      
      Pairwise reductions require two shuffles on every level but the last. On the last level the two shuffles are <1, u, u, u...> and <0, u, u, u...>, but <0, u, u, u...> will be dropped by InstCombine/DAGCombine as being an identity shuffle.
      
      Differential Revision: https://reviews.llvm.org/D55615
      
      llvm-svn: 349072
      c6bfb057
    • Louis Dionne's avatar
      5f1706f3
    • Stefan Granitz's avatar
      [CMake] llvm_codesign workaround for Xcode double-signing errors · 405c5109
      Stefan Granitz authored
      Summary:
      When using Xcode to build LLVM with code signing, the post-build rule is executed even if the actual build-step was skipped. This causes double-signing errors. We can currently only avoid it by passing the `--force` flag.
      
      Plus some polishing for my previous patch D54443.
      
      Reviewers: beanz, kubamracek
      
      Reviewed By: kubamracek
      
      Subscribers: #lldb, mgorny, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D55116
      
      llvm-svn: 349070
      405c5109
    • Davide Italiano's avatar
      [LoopUtils] Use i32 instead of `void`. · 9737096b
      Davide Italiano authored
      The actual type of the first argument of the @dbg intrinsic
      doesn't really matter as we're setting it to `undef`, but the
      bitcode reader is picky about `void` types.
      
      llvm-svn: 349069
      9737096b
    • Tom Stellard's avatar
      Don't add unnecessary compiler flags to llvm-config output · dda33128
      Tom Stellard authored
      Summary:
      llvm-config --cxxflags --cflags, should only output the minimal flags
      required to link against the llvm libraries.  They currently contain
      all flags used to compile llvm including flags like -g, -pedantic,
      -Wall, etc, which users may not always want.
      
      This changes the llvm-config output to only include flags that have been
      explictly added to the COMPILE_FLAGS property of the llvm-config target
      by the llvm build system.
      
      llvm.org/PR8220
      
      Output from llvm-config when running cmake with:
      cmake -G Ninja .. -DCMAKE_CXX_FLAGS=-funroll-loops
      
      Before:
      
      --cppflags: -I$HEADERS_DIR/llvm/include -I$HEADERS_DIR/llvm/build/include
                  -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
      --cflags:   -I$HEADERS_DIR/llvm/include -I$HEADERS_DIR/llvm/build/include
                  -fPIC -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings \
                  -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough \
                  -Wno-comment -fdiagnostics-color -g -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS \
                  -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
      --cxxflags: -I$HEADERS_DIR/llvm/include -I$HEADERS_DIR/llvm/build/include\
                  -funroll-loops -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall \
                  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers \
                  -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized \
                  -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment \
                  -fdiagnostics-color -g  -fno-exceptions -fno-rtti -D_GNU_SOURCE -D_DEBUG \
                  -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"
      
      After:
      
      --cppflags: -I$HEADERS_DIR/llvm/include -I$HEADERS_DIR/llvm/build/include \
                  -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
      --cflags:   -I$HEADERS_DIR/llvm/include -I$HEADERS_DIR/llvm/build/include \
                  -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
      --cxxflags: -I$HEADERS_DIR/llvm/include -I$HEADERS_DIR/llvm/build/include \
                   -std=c++11   -fno-exceptions -fno-rtti \
                   -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
      
      Reviewers: sylvestre.ledru, infinity0, mgorny
      
      Reviewed By: sylvestre.ledru, mgorny
      
      Subscribers: mgorny, dmgreen, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D55391
      
      llvm-svn: 349068
      dda33128
    • Zachary Turner's avatar
      [NativePDB] Add support for local variables. · d3d2b9b8
      Zachary Turner authored
      This patch adds support for parsing and evaluating local variables.
      using the native pdb plugin.
      
      Differential Revision: https://reviews.llvm.org/D55575
      
      llvm-svn: 349067
      d3d2b9b8
    • Zachary Turner's avatar
      Correctly handle skewed streams in drop_front() method. · a05ae9db
      Zachary Turner authored
      When calling BinaryStreamArray::drop_front(), if the stream
      is skewed it means we must never drop the first bytes of the
      stream since offsets which occur in records assume the existence
      of those bytes.  So if we want to skip the first record in a
      stream, then what we really want to do is just set the begin
      pointer to the next record.  But we shouldn't actually remove
      those bytes from the underlying view of the data.
      
      llvm-svn: 349066
      a05ae9db
    • Adrian Prantl's avatar
      Reinstate DW_AT_comp_dir support after D55519. · 046d100b
      Adrian Prantl authored
      The DIFile used by the CU is special and distinct from the main source
      file. Its directory part specifies what becomes the DW_AT_comp_dir
      (the compilation directory), even if the source file was specified
      with an absolute path.
      
      To support the .dwo workflow, a valid DW_AT_comp_dir is necessary even
      if source files were specified with an absolute path.
      
      llvm-svn: 349065
      046d100b
    • Sylvestre Ledru's avatar
      Try to update the test to fix the breakage · 8b325fc7
      Sylvestre Ledru authored
      With the new warning, we are showing one more output in the test.
      
      llvm-svn: 349064
      8b325fc7
    • Ilya Biryukov's avatar
      [CodeComplete] Adhere to LLVM naming style in CodeCompletionTest. NFC · 69e181d4
      Ilya Biryukov authored
      Also reuses the same var for multiple to reduce the chance of
      accidentally referecing the previous test.
      
      llvm-svn: 349063
      69e181d4
    • Greg Clayton's avatar
      Fix MinidumpParser::GetFilteredModuleList() and test it · e55979b1
      Greg Clayton authored
      The MinidumpParser::GetFilteredModuleList() code was attempting to iterate through the entire module list and if it found more than one entry for a given module name, it wanted to pick the MinidumpModule with the lowest address. A bug existed where it wasn't doing that due to "exists" variable being inverted. "exists" was set to true if it was inserted, not if it existed. Furthermore, the order of the modules would be modified by sorting all modules from low address to high address (using MinidumpModule::base_of_image). This fix also maintains the original order which means your executable is at index 0 as intended instead of some random shared library.
      
      Tests were added to ensure this functionality doesn't regress.
      
      Differential Revision: https://reviews.llvm.org/D55614
      
      llvm-svn: 349062
      e55979b1
    • Ilya Biryukov's avatar
      [CodeComplete] Temporarily disable failing assertion · 67dbeb6c
      Ilya Biryukov authored
      Found the case in the clang codebase where the assertion fires.
      To avoid crashing assertion-enabled builds before I re-add the missing
      operation.
      Will restore the assertion alongside the upcoming fix.
      
      llvm-svn: 349061
      67dbeb6c