diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-10 22:08:18 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-10 22:08:18 +0000 |
commit | 13a7db5b9c4f5e543d037be68ec3428216bfd550 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/CodeGen/X86/musttail-varargs.ll | |
parent | 0eb46f5d1e06a4284663d636a74b06adc3a161d7 (diff) | |
parent | 31195f0bdca6ee2a5e72d07edf13e1d81206d949 (diff) | |
download | external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.zip external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.tar.gz external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.tar.bz2 |
am 31195f0b: Merge "Update aosp/master llvm for rebase to r233350"
* commit '31195f0bdca6ee2a5e72d07edf13e1d81206d949':
Update aosp/master llvm for rebase to r233350
Diffstat (limited to 'test/CodeGen/X86/musttail-varargs.ll')
-rw-r--r-- | test/CodeGen/X86/musttail-varargs.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGen/X86/musttail-varargs.ll b/test/CodeGen/X86/musttail-varargs.ll index 7f105a1..52115b2 100644 --- a/test/CodeGen/X86/musttail-varargs.ll +++ b/test/CodeGen/X86/musttail-varargs.ll @@ -106,20 +106,20 @@ define void @g_thunk(i8* %fptr_i8, ...) { @g = external global i32 define void @h_thunk(%struct.Foo* %this, ...) { - %cond_p = getelementptr %struct.Foo* %this, i32 0, i32 0 - %cond = load i1* %cond_p + %cond_p = getelementptr %struct.Foo, %struct.Foo* %this, i32 0, i32 0 + %cond = load i1, i1* %cond_p br i1 %cond, label %then, label %else then: - %a_p = getelementptr %struct.Foo* %this, i32 0, i32 1 - %a_i8 = load i8** %a_p + %a_p = getelementptr %struct.Foo, %struct.Foo* %this, i32 0, i32 1 + %a_i8 = load i8*, i8** %a_p %a = bitcast i8* %a_i8 to void (%struct.Foo*, ...)* musttail call void (%struct.Foo*, ...)* %a(%struct.Foo* %this, ...) ret void else: - %b_p = getelementptr %struct.Foo* %this, i32 0, i32 2 - %b_i8 = load i8** %b_p + %b_p = getelementptr %struct.Foo, %struct.Foo* %this, i32 0, i32 2 + %b_i8 = load i8*, i8** %b_p %b = bitcast i8* %b_i8 to void (%struct.Foo*, ...)* store i32 42, i32* @g musttail call void (%struct.Foo*, ...)* %b(%struct.Foo* %this, ...) |