summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorDominic Chen <d.c.ddcc@gmail.com>2016-08-12 23:12:59 +0000
committerDominic Chen <d.c.ddcc@gmail.com>2016-08-12 23:12:59 +0000
commit2868fa171a35ebe9b8f4462004ed1bf359b86dba (patch)
tree46e543be0c805400d0c05e3341889d0e20642468 /llvm/lib/CodeGen/BranchFolding.cpp
parentc9c0d2dcb5ff88916290deb5d413435ac1ac3bc6 (diff)
downloadbcm5719-llvm-2868fa171a35ebe9b8f4462004ed1bf359b86dba.tar.gz
bcm5719-llvm-2868fa171a35ebe9b8f4462004ed1bf359b86dba.zip
Avoid accessing LLVM/DWARF register mappings if undefined
Summary: If the backend does not define LLVM/DWARF register mappings, the associated variables are undefined since the map initializer is called by auto-generated TableGen routines. This patch initializes the pointers and sizes to nullptr and zero, respectively, and checks that they are valid before searching for a mapping. Reviewers: grosbach, dschuff Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23458 llvm-svn: 278574
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud