diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2017-02-09 01:48:24 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-02-09 01:48:24 +0000 |
| commit | 58c90c0c802aba4ede56cb624c87e97c9a01349b (patch) | |
| tree | ffa0a458bfa0203e92e653953ff1e3e138be4b54 /llvm/test/Transforms/WholeProgramDevirt/vcp-non-constant-arg.ll | |
| parent | a9e67df2f9127e1997a6cac6d93b7336e68861b3 (diff) | |
| download | bcm5719-llvm-58c90c0c802aba4ede56cb624c87e97c9a01349b.tar.gz bcm5719-llvm-58c90c0c802aba4ede56cb624c87e97c9a01349b.zip | |
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.
llvm-svn: 294550
Diffstat (limited to 'llvm/test/Transforms/WholeProgramDevirt/vcp-non-constant-arg.ll')
| -rw-r--r-- | llvm/test/Transforms/WholeProgramDevirt/vcp-non-constant-arg.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/WholeProgramDevirt/vcp-non-constant-arg.ll b/llvm/test/Transforms/WholeProgramDevirt/vcp-non-constant-arg.ll index 197c923c3a1..cc2ff33296a 100644 --- a/llvm/test/Transforms/WholeProgramDevirt/vcp-non-constant-arg.ll +++ b/llvm/test/Transforms/WholeProgramDevirt/vcp-non-constant-arg.ll @@ -3,8 +3,8 @@ target datalayout = "e-p:64:64" target triple = "x86_64-unknown-linux-gnu" -@vt1 = global [1 x i8*] [i8* bitcast (i32 (i8*, i32)* @vf1 to i8*)], !type !0 -@vt2 = global [1 x i8*] [i8* bitcast (i32 (i8*, i32)* @vf2 to i8*)], !type !0 +@vt1 = constant [1 x i8*] [i8* bitcast (i32 (i8*, i32)* @vf1 to i8*)], !type !0 +@vt2 = constant [1 x i8*] [i8* bitcast (i32 (i8*, i32)* @vf2 to i8*)], !type !0 define i32 @vf1(i8* %this, i32 %arg) readnone { ret i32 %arg |

