mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
fix for -O gen-C++ dealing with type constants of unnamed compound types
This commit is contained in:
parent
224519c11a
commit
e165e64fa5
3 changed files with 8 additions and 11 deletions
|
@ -154,8 +154,7 @@ void CPP_IndexedInits<T>::Generate(InitsManager* im, std::vector<FuncValPtr>& iv
|
|||
template<class T>
|
||||
void CPP_IndexedInits<T>::Generate(InitsManager* im, std::vector<TypeValPtr>& ivec, int offset,
|
||||
ValElemVec& init_vals) const {
|
||||
auto bt = base_type(static_cast<TypeTag>(init_vals[0]));
|
||||
auto t = make_intrusive<TypeType>(bt);
|
||||
auto t = make_intrusive<TypeType>(im->Types(init_vals[0]));
|
||||
ivec[offset] = make_intrusive<TypeVal>(t);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue