diff options
Diffstat (limited to 'llvm/test/Instrumentation/AddressSanitizer/coverage.ll')
| -rw-r--r-- | llvm/test/Instrumentation/AddressSanitizer/coverage.ll | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/Instrumentation/AddressSanitizer/coverage.ll b/llvm/test/Instrumentation/AddressSanitizer/coverage.ll index d666925d622..707371ad33f 100644 --- a/llvm/test/Instrumentation/AddressSanitizer/coverage.ll +++ b/llvm/test/Instrumentation/AddressSanitizer/coverage.ll @@ -78,9 +78,13 @@ entry: %vtable = load void (%struct.StructWithVptr*)*** %0, align 8 %1 = load void (%struct.StructWithVptr*)** %vtable, align 8 tail call void %1(%struct.StructWithVptr* %foo) + tail call void %1(%struct.StructWithVptr* %foo) ret void } +; We expect to see two calls to __sanitizer_cov_indir_call16 +; with different values of second argument. ; CHECK4-LABEL: define void @CallViaVptr -; CHECK4: call void @__sanitizer_cov_indir_call16 +; CHECK4: call void @__sanitizer_cov_indir_call16({{.*}},[[CACHE:.*]]) +; CHECK4-NOT: call void @__sanitizer_cov_indir_call16({{.*}},[[CACHE]]) ; CHECK4: ret void |

