Displaying 1 result from an estimated 1 matches for "fieldindex".
Did you mean:
field_index
2014 Dec 15
4
[LLVMdev] ubsan - active member check for unions
...ringVec* FieldNames;
};
extern "C" SANITIZER_INTERFACE_ATTRIBUTE
void __ubsan_union_set_active_field_index(uptr Addr, const
UnionStaticData *Data,
const SourceLocation *ActivationLoc,
unsigned ActiveFieldIndex);
extern "C" SANITIZER_INTERFACE_ATTRIBUTE
void __ubsan_union_check_access(uptr Addr, const SourceLocation *Loc,
unsigned FieldIndex);
For above code, IR looks like:
// s.d = 42.0;
store double 4.200000e+01, double* %d, align 8
// injected by sani...