mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
IR: Initialize DerefOrNullBytes in the AttrBuilder constructors
MSAN pointed out that this value is used uninitialized: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/3678 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236686 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f64a0c1b3e
commit
0518652fc4
@ -436,13 +436,17 @@ class AttrBuilder {
|
|||||||
uint64_t DerefBytes;
|
uint64_t DerefBytes;
|
||||||
uint64_t DerefOrNullBytes;
|
uint64_t DerefOrNullBytes;
|
||||||
public:
|
public:
|
||||||
AttrBuilder() : Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0) {}
|
AttrBuilder()
|
||||||
|
: Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0),
|
||||||
|
DerefOrNullBytes(0) {}
|
||||||
explicit AttrBuilder(uint64_t Val)
|
explicit AttrBuilder(uint64_t Val)
|
||||||
: Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0) {
|
: Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0),
|
||||||
|
DerefOrNullBytes(0) {
|
||||||
addRawValue(Val);
|
addRawValue(Val);
|
||||||
}
|
}
|
||||||
AttrBuilder(const Attribute &A)
|
AttrBuilder(const Attribute &A)
|
||||||
: Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0) {
|
: Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0),
|
||||||
|
DerefOrNullBytes(0) {
|
||||||
addAttribute(A);
|
addAttribute(A);
|
||||||
}
|
}
|
||||||
AttrBuilder(AttributeSet AS, unsigned Idx);
|
AttrBuilder(AttributeSet AS, unsigned Idx);
|
||||||
|
Loading…
Reference in New Issue
Block a user