musttail.ll 363 B

1234567891011121314
  1. ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
  2. ; Check that the ellipsis round trips.
  3. %struct.A = type { i32 }
  4. declare i8* @f(i8*, ...)
  5. define i8* @f_thunk(i8* %this, ...) {
  6. %rv = musttail call i8* (i8*, ...) @f(i8* %this, ...)
  7. ret i8* %rv
  8. }
  9. ; CHECK-LABEL: define i8* @f_thunk(i8* %this, ...)
  10. ; CHECK: %rv = musttail call i8* (i8*, ...) @f(i8* %this, ...)