search for: unionstaticdata

Displaying 1 result from an estimated 1 matches for "unionstaticdata".

2014 Dec 15
4
[LLVMdev] ubsan - active member check for unions
...mous union at union-track-active-t1.cpp:2:3)' is 'd'; access to field 'l' is undefined union-track-active-t1.cpp:10:7: note: active index set to 'd' here Runtime functions I've added: struct StringVec { unsigned NumElts; const char *Elts[]; }; struct UnionStaticData { TypeDescriptor *Type; StringVec* FieldNames; }; extern "C" SANITIZER_INTERFACE_ATTRIBUTE void __ubsan_union_set_active_field_index(uptr Addr, const UnionStaticData *Data, const SourceLocation *ActivationLoc,...