mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-29 22:52:18 +00:00
Make sure SDDbgValue.Invalid is initialized to false by all the constructors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99487 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
589ad5d8c2
commit
c388ace6f9
@ -60,14 +60,14 @@ public:
|
|||||||
|
|
||||||
// Constructor for constants.
|
// Constructor for constants.
|
||||||
SDDbgValue(MDNode *mdP, Value *C, uint64_t off, DebugLoc dl, unsigned O) :
|
SDDbgValue(MDNode *mdP, Value *C, uint64_t off, DebugLoc dl, unsigned O) :
|
||||||
mdPtr(mdP), Offset(off), DL(dl), Order(O) {
|
mdPtr(mdP), Offset(off), DL(dl), Order(O), Invalid(false) {
|
||||||
kind = CONST;
|
kind = CONST;
|
||||||
u.Const = C;
|
u.Const = C;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Constructor for frame indices.
|
// Constructor for frame indices.
|
||||||
SDDbgValue(MDNode *mdP, unsigned FI, uint64_t off, DebugLoc dl, unsigned O) :
|
SDDbgValue(MDNode *mdP, unsigned FI, uint64_t off, DebugLoc dl, unsigned O) :
|
||||||
mdPtr(mdP), Offset(off), DL(dl), Order(O) {
|
mdPtr(mdP), Offset(off), DL(dl), Order(O), Invalid(false) {
|
||||||
kind = FRAMEIX;
|
kind = FRAMEIX;
|
||||||
u.FrameIx = FI;
|
u.FrameIx = FI;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user