[llvm] f2c471e - [WebAssembly] Fix implicit fallthrough in encodeInstruction
Bryan Chan via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 09:22:07 PDT 2023
Author: Bryan Chan
Date: 2023-07-11T12:31:19-04:00
New Revision: f2c471e331c6afa70e1e7ce6f3c7ef28485331a3
URL: https://github.com/llvm/llvm-project/commit/f2c471e331c6afa70e1e7ce6f3c7ef28485331a3
DIFF: https://github.com/llvm/llvm-project/commit/f2c471e331c6afa70e1e7ce6f3c7ef28485331a3.diff
LOG: [WebAssembly] Fix implicit fallthrough in encodeInstruction
Added:
Modified:
llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp
index b57fc40663b9c2..634ed10d4df508 100644
--- a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp
+++ b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp
@@ -127,6 +127,7 @@ void WebAssemblyMCCodeEmitter::encodeInstruction(
Ctx.reportError(
SMLoc(),
Twine("Wasm globals should only be accessed symbolically!"));
+ break;
default:
encodeULEB128(uint64_t(MO.getImm()), OS);
}
More information about the llvm-commits
mailing list