[all-commits] [llvm/llvm-project] d71a8a: [llvm-c] Harmonize usage of unwrap (NFC)

Aaron Puchert via All-commits all-commits at lists.llvm.org
Tue Nov 1 14:54:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d71a8ad3460f1a04686f7087a44c1fef64311239
      https://github.com/llvm/llvm-project/commit/d71a8ad3460f1a04686f7087a44c1fef64311239
  Author: Aaron Puchert <aaronpuchert at alice-dsl.net>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    M llvm/lib/IR/Core.cpp
    M llvm/lib/IR/DebugInfo.cpp

  Log Message:
  -----------
  [llvm-c] Harmonize usage of unwrap (NFC)

Some places were using unwrap<T>(x) = cast<T>(unwrap(x)), even though
the unwrapped value already had type T. Removing the template argument
makes it clear that no cast is intended.

Other places were using cast<T>(unwrap(x)), we replace that with the
shorthand unwrap<T>(x) for consistency.




More information about the All-commits mailing list