1. Oct 10, 2019
    • Sanjay Patel's avatar
      [DAGCombiner] reduce code duplication; NFC · 7f0e7c0b
      Sanjay Patel authored
      llvm-svn: 374370
      7f0e7c0b
    • Guillaume Chatelet's avatar
      [Alignment][NFC] Use llv::Align in GISelKnownBits · ff054b9e
      Guillaume Chatelet authored
      Summary:
      This is patch is part of a series to introduce an Alignment type.
      See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
      See this patch for the introduction of the type: https://reviews.llvm.org/D64790
      
      Reviewers: courbet
      
      Subscribers: hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D68786
      
      llvm-svn: 374369
      ff054b9e
    • Yonghong Song's avatar
      [BPF] Remove relocation for patchable externs · d46a6a9e
      Yonghong Song authored
      Previously, patchable extern relocations are introduced to patch
      external variables used for multi versioning in
      compile once, run everywhere use case. The load instruction
      will be converted into a move with an patchable immediate
      which can be changed by bpf loader on the host.
      
      The kernel verifier has evolved and is able to load
      and propagate constant values, so compiler relocation
      becomes unnecessary. This patch removed codes related to this.
      
      Differential Revision: https://reviews.llvm.org/D68760
      
      llvm-svn: 374367
      d46a6a9e
    • Kousik Kumar's avatar
      In openFileForRead don't cache erroneous entries if the error relates to them... · 4abac533
      Kousik Kumar authored
      In openFileForRead don't cache erroneous entries if the error relates to them being directories. Add tests.
      
      Summary:
      It seems that when the CachingFileSystem is first given a file to open that is actually a directory, it incorrectly
      caches that path to be errenous and throws an error when subsequently a directory open call is made for the same
      path.
      This change makes it so that we do NOT cache a path if it turns out we asked for a file when its a directory.
      
      Reviewers: arphaman
      
      Subscribers: dexonsmith, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D68193
      
      llvm-svn: 374366
      4abac533
    • Stanislav Mekhanoshin's avatar
      [AMDGPU] Fixed dpp_combine.mir with expensive checks. NFC. · cbe55c7c
      Stanislav Mekhanoshin authored
      llvm-svn: 374365
      cbe55c7c
    • Simon Pilgrim's avatar
      Fix Wdocumentation warnings. NFCI. · f7aee61b
      Simon Pilgrim authored
      llvm-svn: 374364
      f7aee61b
    • Alexey Bataev's avatar
      [OPENMP50]Register vendor name only once in vendor context selector. · 4513e93f
      Alexey Bataev authored
      No need to store multiple copies of the same vendor names in the context
      selector, keep only single copy.
      
      llvm-svn: 374363
      4513e93f
    • Russell Gallop's avatar
      [LLD][ELF] Fix stale comments about doing ICF · 6d6ec1b8
      Russell Gallop authored
      Differential Revision: https://reviews.llvm.org/D68396
      
      llvm-svn: 374362
      6d6ec1b8
    • Roman Lebedev's avatar
      [MCA] Show aggregate over Average Wait times for the whole snippet (PR43219) · a5e65c1c
      Roman Lebedev authored
      Summary:
      As disscused in https://bugs.llvm.org/show_bug.cgi?id=43219,
      i believe it may be somewhat useful to show //some// aggregates
      over all the sea of statistics provided.
      
      Example:
      ```
      Average Wait times (based on the timeline view):
      [0]: Executions
      [1]: Average time spent waiting in a scheduler's queue
      [2]: Average time spent waiting in a scheduler's queue while ready
      [3]: Average time elapsed from WB until retire stage
      
            [0]    [1]    [2]    [3]
      0.     3     1.0    1.0    4.7       vmulps     %xmm0, %xmm1, %xmm2
      1.     3     2.7    0.0    2.3       vhaddps    %xmm2, %xmm2, %xmm3
      2.     3     6.0    0.0    0.0       vhaddps    %xmm3, %xmm3, %xmm4
             3     3.2    0.3    2.3       <total>
      ```
      I.e. we average the averages.
      
      Reviewers: andreadb, mattd, RKSimon
      
      Reviewed By: andreadb
      
      Subscribers: gbedwell, arphaman, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D68714
      
      llvm-svn: 374361
      a5e65c1c
    • Dmitri Gribenko's avatar
      Revert "[FileCheck] Implement --ignore-case option." · d3aed7fc
      Dmitri Gribenko authored
      This reverts commit r374339. It broke tests:
      http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/19066
      
      llvm-svn: 374359
      d3aed7fc
    • Dmitri Gribenko's avatar
    • Dmitri Gribenko's avatar
      Revert "Fix OCaml/core.ml fneg check" · 43fcbcb4
      Dmitri Gribenko authored
      This reverts commit r374346. It attempted to fix OCaml tests, but is
      does not actually fix them.
      
      llvm-svn: 374357
      43fcbcb4
    • Simon Pilgrim's avatar
      [X86] combineFMA - Convert to use isNegatibleForFree/GetNegatedExpression. · 6a38474f
      Simon Pilgrim authored
      Split off from D67557.
      
      llvm-svn: 374356
      6a38474f
    • Simon Pilgrim's avatar
      Fix OCaml/core.ml fneg check (try 2) · fdc0917b
      Simon Pilgrim authored
      llvm-svn: 374355
      fdc0917b
    • Dmitri Gribenko's avatar
      eaf6dd48
    • Pavel Labath's avatar
      unwind-via-stack-win.yaml: update for changes in yaml format · 390accea
      Pavel Labath authored
      llvm-svn: 374353
      390accea
    • Raphael Isemann's avatar
      [lldb] Fix minidebuginfo-set-and-hit-breakpoint.test · ffe170c6
      Raphael Isemann authored
      This was failing for me because of this error:
      llvm-objcopy: error: 'build/tools/lldb/test/ObjectFile/ELF/Output/minidebuginfo-set-and-hit-breakpoint.test.tmp.mini_debuginfo': section '.dynsym' cannot be removed because it is referenced by the section '.hash'
      
      Patch by Konrad Kleine!
      
      llvm-svn: 374352
      ffe170c6
    • Simon Pilgrim's avatar
      [X86] combineFMADDSUB - Convert to use isNegatibleForFree/GetNegatedExpression. · f096443a
      Simon Pilgrim authored
      Split off from D67557, fixes the compile time regression mentioned in rL372756
      
      llvm-svn: 374351
      f096443a
    • Raphael Isemann's avatar
      [lldb] Add log output for the support files we pass to the CppModuleConfiguration · ccd54a13
      Raphael Isemann authored
      CppModuleConfiguration is the most likely point of failure when we have weird
      setups where we fail to load a C++ module. With this logging it should be easier
      to figure out why we can't find a valid configuration as the configuration only
      depends on the list of file paths.
      
      llvm-svn: 374350
      ccd54a13
    • Thomas Preud'homme's avatar
      Revert "[test] Use system locale for mri-utf8.test" · 48edae33
      Thomas Preud'homme authored
      This reverts commit r374318 / b6f1d1fa.
      
      llvm-svn: 374349
      48edae33
    • Jay Foad's avatar
      Revert "[AMDGPU] Run `unreachable-mbb-elimination` after isel to clean up PHIs." · 76505565
      Jay Foad authored
      Summary:
      This has been superseded by "[AMDGPU]: PHI Elimination hooks added for custom COPY insertion."
      
      This reverts the code changes from commit 53f967f2
      but keeps the test case.
      
      Reviewers: hliao, arsenm, tpr, dstuttard
      
      Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, t-tye, hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D68769
      
      llvm-svn: 374347
      76505565
    • Simon Pilgrim's avatar
      Fix OCaml/core.ml fneg check · fbf8b0bc
      Simon Pilgrim authored
      llvm-svn: 374346
      fbf8b0bc
    • Simon Pilgrim's avatar
      [DAG][X86] Add isNegatibleForFree/GetNegatedExpression override placeholders. NFCI. · 08c2f530
      Simon Pilgrim authored
      Continuing to undo the rL372756 reversion.
      
      Differential Revision: https://reviews.llvm.org/D67557
      
      llvm-svn: 374345
      08c2f530
    • George Rimar's avatar
      [llvm-readelf] - Do not enter an infinite loop when printing histogram. · 55f1be09
      George Rimar authored
      This is similar to D68086.
      We are entering an infinite loop when dumping a histogram for a specially crafted
      .hash section with a loop in a chain.
      
      Differential revision: https://reviews.llvm.org/D68771
      
      llvm-svn: 374344
      55f1be09
    • Kai Nacke's avatar
      [Tests] Output of od can be lower or upper case (llvm-objcopy/yaml2obj). · 819f01d9
      Kai Nacke authored
      The command `od -t x` is used to dump data in hex format.
      The LIT tests assumes that the hex characters are in lowercase.
      However, there are also platforms which use uppercase letter.
      
      To solve this issue the tests are updated to use the new
      `--ignore-case` option of FileCheck.
      
      Reviewers: Bigcheese, jakehehrlich, rupprecht, espindola, alexshap, jhenderson
      
      Differential Revision: https://reviews.llvm.org/D68693
      
      llvm-svn: 374343
      819f01d9
    • Pavel Labath's avatar
      Fix the unwinding plan augmentation from x86 assembly · 50703223
      Pavel Labath authored
      Unwind plan augmentation should compute the plan row at offset x from
      the instruction before offset x, but currently we compute it from the
      instruction at offset x. Note that this behavior is a regression
      introduced when moving the x86 assembly inspection engine to its own
      file
      (https://github.com/llvm/llvm-project/commit/1c9858b298d79ce82c45a2954096718b39550109#diff-375a2be066db6f34bb9a71442c9b71fcL913);
      the original version handled this properly by copying the previous
      instruction out before advancing the instruction pointer.
      
      The relevant bug with more info is here: https://bugs.llvm.org/show_bug.cgi?id=43561
      
      Differential Revision: https://reviews.llvm.org/D68454
      Patch by Jaroslav Sevcik <jarin@google.com>.
      
      llvm-svn: 374342
      50703223
    • Pavel Labath's avatar
      Fix some dangling else warnings · c8c71e6f
      Pavel Labath authored
      EXPECT_EQ contains an if-else statement. It also contains some magic to
      suppress the dangling else warnings, but it seems that some new
      compilers can see through that...
      
      llvm-svn: 374341
      c8c71e6f
    • Amaury Sechet's avatar
      [DAGCombine] Match more patterns for half word bswap · aaf05078
      Amaury Sechet authored
      Summary: It ensures that the bswap is generated even when a part of the subtree already matches a bswap transform.
      
      Reviewers: craig.topper, efriedma, RKSimon, lebedev.ri
      
      Subscribers: llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D68250
      
      llvm-svn: 374340
      aaf05078
    • Kai Nacke's avatar
      [FileCheck] Implement --ignore-case option. · dfd2b6f0
      Kai Nacke authored
      The FileCheck utility is enhanced to support a `--ignore-case`
      option. This is useful in cases where the output of Unix tools
      differs in case (e.g. case not specified by Posix).
      
      Reviewers: Bigcheese, jakehehrlich, rupprecht, espindola, alexshap, jhenderson, MaskRay
      
      Differential Revision: https://reviews.llvm.org/D68146
      
      llvm-svn: 374339
      dfd2b6f0
    • Florian Hahn's avatar
      [LV][NFC] Factor out calculation of "best" estimated trip count. · a3ca7acb
      Florian Hahn authored
      This is just small refactoring to minimize changes in upcoming patch.
      In the next path I'm going to introduce changes into heuristic for vectorization of "tiny trip count" loops.
      
      Patch by Evgeniy Brevnov <evgueni.brevnov@gmail.com>
      
      Reviewers: hsaito, Ayal, fhahn, reames
      
      Reviewed By: hsaito
      
      Differential Revision: https://reviews.llvm.org/D67690
      
      llvm-svn: 374338
      a3ca7acb
    • Pavel Labath's avatar
      MinidumpYAML: Add support for the memory info list stream · 3aa7e766
      Pavel Labath authored
      Summary:
      The implementation is fairly straight-forward and uses the same patterns
      as the existing streams. The yaml form does not attempt to preserve the
      data in the "gaps" that can be created by setting a larger-than-required
      header or entry size in the stream header, because the existing consumer
      (lldb) does not make use of the information in the gap in any way, and
      attempting to preserve that would make the implementation more
      complicated.
      
      Reviewers: amccarth, jhenderson, clayborg
      
      Subscribers: llvm-commits, lldb-commits, markmentovai, zturner, JosephTremoulet
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D68645
      
      llvm-svn: 374337
      3aa7e766
    • David Green's avatar
      [ARM] VQADD instructions · 39596ec2
      David Green authored
      This selects MVE VQADD from the vector llvm.sadd.sat or llvm.uadd.sat
      intrinsics.
      
      Differential Revision: https://reviews.llvm.org/D68566
      
      llvm-svn: 374336
      39596ec2
    • Raphael Isemann's avatar
      [lldb] Make sure import-std-module/sysroot actually passes for the right reasons · f5b2b760
      Raphael Isemann authored
      This test was previously passing because myabs was actually emitted into the
      debug information and we called that. The test itself was broken as it didn't
      use the libc++ directory structure (the /v1/ directory was just called /include/).
      
      This patch gives myabs a default argument which we can't get from debug information
      and inlines the function to make sure we can't call it from LLDB without loading
      the C++ module.
      
      llvm-svn: 374335
      f5b2b760
    • Sanjay Patel's avatar
      [AArch64][x86] add tests for (v)select bit magic; NFC · 3370d4d2
      Sanjay Patel authored
      llvm-svn: 374334
      3370d4d2
    • David Carlier's avatar
      [Sanitizers] Fix getrandom test · 69c9c223
      David Carlier authored
      llvm-svn: 374333
      69c9c223
    • Rui Ueyama's avatar
      Make nullptr check more robust · 9adea6e4
      Rui Ueyama authored
      The only condition that isecLoc becomes null is
      
        Out::bufferStart == nullptr,
        isec->getParent()->offset == 0, and
        isec->outSecOff == 0.
      
      We can check the first condition only once.
      
      llvm-svn: 374332
      9adea6e4
    • Pavel Labath's avatar
      File: Handle more cases in GetOptionsFromMode · 342b1b2e
      Pavel Labath authored
      The "b" (binary) flag is meaningless most of the time, but the relevant
      standars allow it. The standards permit one to spell it both as "r+b"
      and "rb+", so handle both cases.
      
      This fixes TestFileHandle.test_binary_inout with python2.
      
      llvm-svn: 374331
      342b1b2e
    • Guillaume Chatelet's avatar
      [Alignment][NFC] Make VectorUtils uas llvm::Align · 837a1b84
      Guillaume Chatelet authored
      Summary:
      This is patch is part of a series to introduce an Alignment type.
      See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
      See this patch for the introduction of the type: https://reviews.llvm.org/D64790
      
      Reviewers: courbet
      
      Subscribers: hiraditya, rogfer01, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D68784
      
      llvm-svn: 374330
      837a1b84
    • Roman Lebedev's avatar
      [lld] getErrPlace(): don't perform arithmetics on maybe-null pointer · 1508fbad
      Roman Lebedev authored
      isecLoc there can be null, but at the same time isec->getSize() may
      be non-null. It is UB to offset a nullptr.The most straight-forward fix
      here appears to perform casts+normal integral arithmetics.
      
      FAIL: lld :: ELF/invalid/invalid-relocation-aarch64.test (1158 of 2217)
      ******************** TEST 'lld :: ELF/invalid/invalid-relocation-aarch64.test' FAILED ********************
      Script:
      --
      : 'RUN: at line 2';   /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/yaml2obj /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/lld/test/ELF/invalid/invalid-relocation-aarch64.test -o /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/lld/test/ELF/invalid/Output/invalid-relocation-aarch64.test.tmp.o
      : 'RUN: at line 3';   not /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld.lld /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/lld/test/ELF/invalid/Output/invalid-relocation-aarch64.test.tmp.o -o /dev/null 2>&1 | /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/lld/test/ELF/invalid/invalid-relocation-aarch64.test
      --
      Exit Code: 1
      
      Command Output (stderr):
      --
      /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/lld/test/ELF/invalid/invalid-relocation-aarch64.test:4:10: error: CHECK: expected string not found in input
      # CHECK: error: unknown relocation (1024) against symbol foo
               ^
      <stdin>:1:1: note: scanning from here
      /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/lld/ELF/Target.cpp:100:41: runtime error: applying non-zero offset 24 to null pointer
      ^
      <stdin>:1:118: note: possible intended match here
      /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/lld/ELF/Target.cpp:100:41: runtime error: applying non-zero offset 24 to null pointer
                                                                                                                           ^
      
      --
      
      ********************
      Testing:  0.. 10.. 20.. 30.. 40.. 50.
      FAIL: lld :: ELF/invalid/invalid-relocation-x64.test (1270 of 2217)
      ******************** TEST 'lld :: ELF/invalid/invalid-relocation-x64.test' FAILED ********************
      Script:
      --
      : 'RUN: at line 2';   /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/yaml2obj /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/lld/test/ELF/invalid/invalid-relocation-x64.test -o /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/lld/test/ELF/invalid/Output/invalid-relocation-x64.test.tmp1.o
      : 'RUN: at line 3';   echo ".global foo; foo:" > /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/lld/test/ELF/invalid/Output/invalid-relocation-x64.test.tmp2.s
      : 'RUN: at line 4';   /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/llvm-mc /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/lld/test/ELF/invalid/Output/invalid-relocation-x64.test.tmp2.s -o /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/lld/test/ELF/invalid/Output/invalid-relocation-x64.test.tmp2.o -filetype=obj -triple x86_64-pc-linux
      : 'RUN: at line 5';   not /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld.lld /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/lld/test/ELF/invalid/Output/invalid-relocation-x64.test.tmp1.o /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/lld/test/ELF/invalid/Output/invalid-relocation-x64.test.tmp2.o -o /dev/null 2>&1 | /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/lld/test/ELF/invalid/invalid-relocation-x64.test
      --
      Exit Code: 1
      
      Command Output (stderr):
      --
      /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/lld/test/ELF/invalid/invalid-relocation-x64.test:6:10: error: CHECK: expected string not found in input
      # CHECK: error: unknown relocation (152) against symbol foo
               ^
      <stdin>:1:1: note: scanning from here
      /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/lld/ELF/Target.cpp:100:41: runtime error: applying non-zero offset 24 to null pointer
      ^
      <stdin>:1:118: note: possible intended match here
      /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/lld/ELF/Target.cpp:100:41: runtime error: applying non-zero offset 24 to null pointer
                                                                                                                           ^
      
      --
      
      ********************
      Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
      Testing Time: 20.73s
      ********************
      Failing Tests (2):
          lld :: ELF/invalid/invalid-relocation-aarch64.test
          lld :: ELF/invalid/invalid-relocation-x64.test
      
      llvm-svn: 374329
      1508fbad
    • Roman Lebedev's avatar
      [AST] ASTReader::ReadSLocEntry(): move computation of FirstDecl into the branch where it's used · bf4f1e0e
      Roman Lebedev authored
      The existing code is not defined, you are not allowed
      to produce non-null pointer from null pointer (F->FileSortedDecls here).
      That being said, i'm not really confident this is fix-enough, but we'll see.
      
      FAIL: Clang :: Modules/no-module-map.cpp (6879 of 16079)
      ******************** TEST 'Clang :: Modules/no-module-map.cpp' FAILED ********************
      Script:
      --
      : 'RUN: at line 1';   /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/10.0.0/include -nostdsysteminc -fmodules-ts -fmodule-name=ab -x c++-header /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/test/Modules/Inputs/no-module-map/a.h /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/test/Modules/Inputs/no-module-map/b.h -emit-header-module -o /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/clang/test/Modules/Output/no-module-map.cpp.tmp.pcm
      : 'RUN: at line 2';   /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/10.0.0/include -nostdsysteminc -fmodules-ts -fmodule-file=/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/clang/test/Modules/Output/no-module-map.cpp.tmp.pcm /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/test/Modules/no-module-map.cpp -I/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/test/Modules/Inputs/no-module-map -verify
      : 'RUN: at line 3';   /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/10.0.0/include -nostdsysteminc -fmodules-ts -fmodule-file=/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/clang/test/Modules/Output/no-module-map.cpp.tmp.pcm /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/test/Modules/no-module-map.cpp -I/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/test/Modules/Inputs/no-module-map -verify -DA
      : 'RUN: at line 4';   /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/10.0.0/include -nostdsysteminc -fmodules-ts -fmodule-file=/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/clang/test/Modules/Output/no-module-map.cpp.tmp.pcm /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/test/Modules/no-module-map.cpp -I/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/test/Modules/Inputs/no-module-map -verify -DB
      : 'RUN: at line 5';   /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/10.0.0/include -nostdsysteminc -fmodules-ts -fmodule-file=/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/clang/test/Modules/Output/no-module-map.cpp.tmp.pcm /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/test/Modules/no-module-map.cpp -I/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/test/Modules/Inputs/no-module-map -verify -DA -DB
      : 'RUN: at line 7';   /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/10.0.0/include -nostdsysteminc -E /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/clang/test/Modules/Output/no-module-map.cpp.tmp.pcm -o - | /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/test/Modules/no-module-map.cpp
      : 'RUN: at line 8';   /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/10.0.0/include -nostdsysteminc -frewrite-imports -E /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/tools/clang/test/Modules/Output/no-module-map.cpp.tmp.pcm -o - | /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/FileCheck /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/test/Modules/no-module-map.cpp
      --
      Exit Code: 2
      
      Command Output (stderr):
      --
      /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/lib/Serialization/ASTReader.cpp:1526:50: runtime error: applying non-zero offset 8 to null pointer
          #0 0x3a9bd0c in clang::ASTReader::ReadSLocEntry(int) /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/lib/Serialization/ASTReader.cpp:1526:50
          #1 0x328b6f8 in clang::SourceManager::loadSLocEntry(unsigned int, bool*) const /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/lib/Basic/SourceManager.cpp:461:28
          #2 0x328b351 in clang::SourceManager::initializeForReplay(clang::SourceManager const&) /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/lib/Basic/SourceManager.cpp:399:11
          #3 0x3996c71 in clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&, clang::FrontendInputFile const&) /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/lib/Frontend/FrontendAction.cpp:581:27
          #4 0x394f341 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:956:13
          #5 0x3a8a92b in clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:290:25
          #6 0xaf8d62 in cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/tools/driver/cc1_main.cpp:250:15
          #7 0xaf1602 in ExecuteCC1Tool /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/tools/driver/driver.cpp:309:12
          #8 0xaf1602 in main /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/tools/driver/driver.cpp:382:12
          #9 0x7f2c1eecc2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
          #10 0xad57f9 in _start (/b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang-10+0xad57f9)
      
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /b/sanitizer-x86_64-linux-bootstrap-ubsan/build/llvm-project/clang/lib/Serialization/ASTReader.cpp:1526:50 in
      llvm-svn: 374328
      bf4f1e0e