aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-as/llvm-as.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-07-07 08:23:41 +0900
committerGitHub <noreply@github.com>2024-07-07 08:23:41 +0900
commit75bc20ff899753b100cb875ce703af2348a1d6bb (patch)
tree786f193a3701dc9aa60ee647fede7a23cda2974b /llvm/tools/llvm-as/llvm-as.cpp
parentf767295942288bd70156ad322defac60b568c927 (diff)
downloadllvm-75bc20ff899753b100cb875ce703af2348a1d6bb.zip
llvm-75bc20ff899753b100cb875ce703af2348a1d6bb.tar.gz
llvm-75bc20ff899753b100cb875ce703af2348a1d6bb.tar.bz2
[llvm] Remove redundant calls to std::unique_ptr<T>::get (NFC) (#97914)
Diffstat (limited to 'llvm/tools/llvm-as/llvm-as.cpp')
-rw-r--r--llvm/tools/llvm-as/llvm-as.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-as/llvm-as.cpp b/llvm/tools/llvm-as/llvm-as.cpp
index 9b9af76..f28ad00 100644
--- a/llvm/tools/llvm-as/llvm-as.cpp
+++ b/llvm/tools/llvm-as/llvm-as.cpp
@@ -153,7 +153,7 @@ int main(int argc, char **argv) {
if (!DisableVerify) {
std::string ErrorStr;
raw_string_ostream OS(ErrorStr);
- if (verifyModule(*M.get(), &OS)) {
+ if (verifyModule(*M, &OS)) {
errs() << argv[0]
<< ": assembly parsed, but does not verify as correct!\n";
errs() << OS.str();
@@ -163,7 +163,7 @@ int main(int argc, char **argv) {
}
if (DumpAsm) {
- errs() << "Here's the assembly:\n" << *M.get();
+ errs() << "Here's the assembly:\n" << *M;
if (Index.get() && Index->begin() != Index->end())
Index->print(errs());
}