Fix undefined behavior in Variable.h
authorZachary Turner <zturner@google.com>
Tue, 11 Dec 2018 00:15:03 +0000 (00:15 +0000)
committerZachary Turner <zturner@google.com>
Tue, 11 Dec 2018 00:15:03 +0000 (00:15 +0000)
commit9d76e42014f1b73fbfb5c80b106332e1351ca703
tree850ce1f9d3d237b0ccd9dda4f071742b8aa91794
parent08e231dd9c2715a7696f45785c5babd052bfa911
Fix undefined behavior in Variable.h

m_loc_is_constant_data was uninitialized, so unless someone
explicitly called SetLocIsConstantData(), this would be UB.

I think every existing call-site would always call the proper
function to initialize the value, so there were no existing
bugs, but I encountered this when I tried to use it without
calling this function and encountered this.

llvm-svn: 348813
lldb/source/Symbol/Variable.cpp