summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/code-align.ll
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2018-01-22 14:32:43 +0000
committerRaphael Isemann <teemperor@gmail.com>2018-01-22 14:32:43 +0000
commit57f9b363c19ae58d8e895856e20b3f23951624b4 (patch)
treee8d5fcdf36736396a152119849e715212c232a37 /llvm/test/CodeGen/PowerPC/code-align.ll
parentda15b5b1161b7f290f2b3cb30db7d6bc06fb83fb (diff)
downloadbcm5719-llvm-57f9b363c19ae58d8e895856e20b3f23951624b4.tar.gz
bcm5719-llvm-57f9b363c19ae58d8e895856e20b3f23951624b4.zip
Fix uninitialized variable in GoParser
Summary: `m_last_tok` isn't initialized anywhere before it's used the first time (most likely in the `GoParser::Rule::error` method), which causes most of the GoParser tests to fail with sanitizers enabled with errors like this: ``` GoParser.cpp:52:21: runtime error: load of value <random value>, which is not a valid value for type 'GoLexer::TokenType' UndefinedBehaviorSanitizer: undefined-behavior GoParser.cpp:52:21 ``` Reviewers: ribrdb, davide, labath Reviewed By: labath Subscribers: labath, lldb-commits Differential Revision: https://reviews.llvm.org/D42339 llvm-svn: 323119
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/code-align.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud