]> granicus.if.org Git - llvm/commit
LowerTypeTests: Change a few vtable globals in tests to constants.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 9 Feb 2017 01:48:24 +0000 (01:48 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 9 Feb 2017 01:48:24 +0000 (01:48 +0000)
commit5a50fd8010ccd782dbc613334e23df4ab0dc84df
treec241b153cdb33d8bbbc353a15a7f39c01f01d007
parent3a124c0e3d198c57522a3e027eb63385067acbbc
LowerTypeTests: Change a few vtable globals in tests to constants.

It turns out that some of our negative tests were not in fact providing the
test coverage we expected: they were passing because the vtables were failing
an early check that they were constant. Fix this by changing the globals in
these tests to constants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294550 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/WholeProgramDevirt/bad-read-from-vtable.ll
test/Transforms/WholeProgramDevirt/vcp-accesses-memory.ll
test/Transforms/WholeProgramDevirt/vcp-no-this.ll
test/Transforms/WholeProgramDevirt/vcp-non-constant-arg.ll
test/Transforms/WholeProgramDevirt/vcp-too-wide-ints.ll
test/Transforms/WholeProgramDevirt/vcp-type-mismatch.ll
test/Transforms/WholeProgramDevirt/vcp-uses-this.ll