summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-03-25 05:50:26 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-03-25 05:50:26 +0000
commitc388ace6f9012c503630eb633e3977e0fc42bb00 (patch)
treeae24eacd665d8dfffc355490637d17feec4357af /lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
parent589ad5d8c20bf11441624db30b192a8b06da688b (diff)
downloadllvm-c388ace6f9012c503630eb633e3977e0fc42bb00.tar.gz
llvm-c388ace6f9012c503630eb633e3977e0fc42bb00.tar.bz2
llvm-c388ace6f9012c503630eb633e3977e0fc42bb00.tar.xz
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SDNodeDbgValue.h')
-rw-r--r--lib/CodeGen/SelectionDAG/SDNodeDbgValue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h b/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
index eaa04abe08..7638ea2ae1 100644
--- a/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
+++ b/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
@@ -60,14 +60,14 @@ public:
// Constructor for constants.
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;
u.Const = C;
}
// Constructor for frame indices.
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;
u.FrameIx = FI;
}