[all-commits] [llvm/llvm-project] 26d954: [AsmParser] Avoid instantiating LLVMContext if not...

Yevgeny Rouban via All-commits all-commits at lists.llvm.org
Thu Mar 23 02:58:39 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26d954bd4004dd01771308a5061a865073993130
  Author: Yevgeny Rouban <yrouban at azul.com>
  Date:   2023-03-23 (Thu, 23 Mar 2023)

  Changed paths:
    M llvm/include/llvm/IR/LLVMContext.h
    M llvm/lib/AsmParser/Parser.cpp

  Log Message:
  [AsmParser] Avoid instantiating LLVMContext if not needed. Try 2.

The deleted copy constructor LLVMContext(LLVMContext &) got its
parameter changed to const to allow the latest clang compiler to
instantiatiate template std::optional<LLVMContext>.

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

More information about the All-commits mailing list