[llvm] 1a67522 - [NFC] Inline variable only used in debug builds
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 19:39:09 PDT 2020
Author: Jordan Rupprecht
Date: 2020-08-11T19:38:01-07:00
New Revision: 1a67522d3ef4b5b1d6d14f47895a6ad11598573c
URL: https://github.com/llvm/llvm-project/commit/1a67522d3ef4b5b1d6d14f47895a6ad11598573c
DIFF: https://github.com/llvm/llvm-project/commit/1a67522d3ef4b5b1d6d14f47895a6ad11598573c.diff
LOG: [NFC] Inline variable only used in debug builds
Added:
Modified:
llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp b/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
index dcaab8a8af0d..b0137384971c 100644
--- a/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
+++ b/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
@@ -870,8 +870,7 @@ class WebAssemblyAsmParser final : public MCTargetAsmParser {
return false;
}
case Match_MissingFeature: {
- auto NumMissing = MissingFeatures.count();
- assert(NumMissing > 0 && "Expected missing features");
+ assert(MissingFeatures.count() > 0 && "Expected missing features");
SmallString<128> Message;
raw_svector_ostream OS(Message);
OS << "instruction requires:";
More information about the llvm-commits
mailing list