summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Winstein <keithw@cs.stanford.edu>2023-02-25 11:18:39 -0800
committerGitHub <noreply@github.com>2023-02-25 19:18:39 +0000
commit6a11a5bf6d4f576431b38b72e9f30e5b426d21bb (patch)
treefa4e8e0e6712465fe67bd9dbb7f93ca1c35ad790 /src
parentb1c375caae3830f73120d7d4fe9118bf2895c57c (diff)
downloadwabt-6a11a5bf6d4f576431b38b72e9f30e5b426d21bb.tar.gz
wabt-6a11a5bf6d4f576431b38b72e9f30e5b426d21bb.tar.bz2
wabt-6a11a5bf6d4f576431b38b72e9f30e5b426d21bb.zip
c-writer.cc: omit dummy_member in one case where it was unnecessary (NFC) (#2149)
Diffstat (limited to 'src')
-rw-r--r--src/c-writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c-writer.cc b/src/c-writer.cc
index e943311f..bdbd2bc1 100644
--- a/src/c-writer.cc
+++ b/src/c-writer.cc
@@ -1594,7 +1594,7 @@ void CWriter::WriteModuleInstance() {
// C forbids an empty struct
if (module_->globals.empty() && module_->memories.empty() &&
- module_->tables.empty()) {
+ module_->tables.empty() && import_func_module_set_.empty()) {
Write("char dummy_member;", Newline());
}