aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-12-11 00:15:03 +0000
committerZachary Turner <zturner@google.com>2018-12-11 00:15:03 +0000
commit9d76e42014f1b73fbfb5c80b106332e1351ca703 (patch)
tree850ce1f9d3d237b0ccd9dda4f071742b8aa91794 /llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp
parent08e231dd9c2715a7696f45785c5babd052bfa911 (diff)
downloadllvm-9d76e42014f1b73fbfb5c80b106332e1351ca703.zip
llvm-9d76e42014f1b73fbfb5c80b106332e1351ca703.tar.gz
llvm-9d76e42014f1b73fbfb5c80b106332e1351ca703.tar.bz2
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
Diffstat (limited to 'llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp')
0 files changed, 0 insertions, 0 deletions