From 1ae9ede9fe91a4162f0d4f738b6209a07be24957 Mon Sep 17 00:00:00 2001 From: Varun Gandhi Date: Thu, 8 Sep 2022 08:52:33 +0800 Subject: [PATCH] fix: Compilation errors in release builds. --- core/Symbols.h | 2 +- scip_indexer/SCIPIndexer.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/Symbols.h b/core/Symbols.h index 06a247bb9..aa3dfaffc 100644 --- a/core/Symbols.h +++ b/core/Symbols.h @@ -189,7 +189,7 @@ class Method final { InlinedVector locs_; std::unique_ptr> typeArgs; }; -static_assert(sizeof(Method) == 168); +CheckSize(Method, 152, 8); // Contains a field or a static field class Field final { diff --git a/scip_indexer/SCIPIndexer.cc b/scip_indexer/SCIPIndexer.cc index 973a938f3..e9dbcd711 100644 --- a/scip_indexer/SCIPIndexer.cc +++ b/scip_indexer/SCIPIndexer.cc @@ -443,6 +443,7 @@ class NamedSymbolRef final { return this->selfOrOwner.loc(gs); case Kind::UndeclaredField: ENFORCE(false, "case UndeclaredField should not be triggered here"); + return core::Loc(); } } };