[llvm-c] Harmonize usage of unwrap (NFC)
authorAaron Puchert <aaronpuchert@alice-dsl.net>
Tue, 1 Nov 2022 21:26:40 +0000 (22:26 +0100)
committerAaron Puchert <aaronpuchert@alice-dsl.net>
Tue, 1 Nov 2022 21:52:23 +0000 (22:52 +0100)
commitd71a8ad3460f1a04686f7087a44c1fef64311239
tree3113f30041fb891f9a831a407e4cafea2fa055ca
parentcc7b03b01e7c2f7209b68ed29d9a16d0929e1e73
[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.
llvm/lib/IR/Core.cpp
llvm/lib/IR/DebugInfo.cpp