[all-commits] [llvm/llvm-project] b12601: [mlir][AsmPrinter] Fix multi-threaded segfault by ...

River Riddle via All-commits all-commits at lists.llvm.org
Thu Apr 15 12:27:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b1260109fb4886256ee5858a026c1d3349a09eba
      https://github.com/llvm/llvm-project/commit/b1260109fb4886256ee5858a026c1d3349a09eba
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2021-04-15 (Thu, 15 Apr 2021)

  Changed paths:
    M mlir/lib/IR/AsmPrinter.cpp

  Log Message:
  -----------
  [mlir][AsmPrinter] Fix multi-threaded segfault by using explicit null stream per thread

We were using llvm::nulls, but that isn't thread safe so we switch to giving each thread it's own null stream.

Differential Revision: https://reviews.llvm.org/D100578




More information about the All-commits mailing list