[MachineVerifier] Avoid reference to nullptr
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Wed, 29 Mar 2017 09:08:25 +0000 (09:08 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Wed, 29 Mar 2017 09:08:25 +0000 (09:08 +0000)
commit64532cd1e1bcd280dfa9605baad762d08c1a76cd
tree9d4f99fcb878cc7a8b521f8efb7de282bc6d83fb
parentd94614ff32ce1652aae6df1b3748c7fb556c8c6b
[MachineVerifier] Avoid reference to nullptr

Instantiation of the MachineVerifierPass through
PassInfo::getNormalCtor would yield a segfault since the default
constructor of the MachineVerifierPass takes a reference to nullptr.

Patch by Simone Pellegrini.

Differential Revision: https://reviews.llvm.org/D31387

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298987 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineVerifier.cpp