[llvm] ff937a8 - [Webassembly][NFC] Fix typo in comment

Congcong Cai via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 22:21:05 PDT 2023


Author: Congcong Cai
Date: 2023-03-21T13:20:46+08:00
New Revision: ff937a82f175937faebcea924941551898e7f794

URL: https://github.com/llvm/llvm-project/commit/ff937a82f175937faebcea924941551898e7f794
DIFF: https://github.com/llvm/llvm-project/commit/ff937a82f175937faebcea924941551898e7f794.diff

LOG: [Webassembly][NFC] Fix typo in comment

Added: 
    

Modified: 
    llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
index c48a13ef7eb5..9bf2596bf3ff 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
@@ -893,7 +893,7 @@ void llvm::getLibcallSignature(const WebAssemblySubtarget &Subtarget,
   }
 }
 
-// TODO: If the RTLIB::Libcall-taking flavor of GetSignature remains unsed
+// TODO: If the RTLIB::Libcall-taking flavor of GetSignature remains unused
 // other than here, just roll its logic into this version.
 void llvm::getLibcallSignature(const WebAssemblySubtarget &Subtarget,
                                StringRef Name,
@@ -904,9 +904,9 @@ void llvm::getLibcallSignature(const WebAssemblySubtarget &Subtarget,
   auto Val = Map.find(Name);
 #ifndef NDEBUG
   if (Val == Map.end()) {
-    auto message =
+    auto Message =
         std::string("unexpected runtime library name: ") + std::string(Name);
-    llvm_unreachable(message.c_str());
+    llvm_unreachable(Message.c_str());
   }
 #endif
   return getLibcallSignature(Subtarget, Val->second, Rets, Params);


        


More information about the llvm-commits mailing list