[llvm] 9637a17 - [test][msan] Test origin description argument
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 14:29:28 PDT 2022
Author: Vitaly Buka
Date: 2022-08-11T14:29:09-07:00
New Revision: 9637a171262fd3997d5ab22cbc7cbb15b3c06898
URL: https://github.com/llvm/llvm-project/commit/9637a171262fd3997d5ab22cbc7cbb15b3c06898
DIFF: https://github.com/llvm/llvm-project/commit/9637a171262fd3997d5ab22cbc7cbb15b3c06898.diff
LOG: [test][msan] Test origin description argument
Reviewed By: kda
Differential Revision: https://reviews.llvm.org/D131721
Added:
Modified:
llvm/test/Instrumentation/MemorySanitizer/alloca.ll
Removed:
################################################################################
diff --git a/llvm/test/Instrumentation/MemorySanitizer/alloca.ll b/llvm/test/Instrumentation/MemorySanitizer/alloca.ll
index a3a807ad9f5c6..2fc50acbeae37 100644
--- a/llvm/test/Instrumentation/MemorySanitizer/alloca.ll
+++ b/llvm/test/Instrumentation/MemorySanitizer/alloca.ll
@@ -14,16 +14,18 @@
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
+; ORIGIN: [[D:@[0-9]+]] = private global [13 x i8] c"----unique_x\00"
+
define void @static() sanitize_memory {
entry:
- %x = alloca i32, align 4
+ %unique_x = alloca i32, align 4
ret void
}
; CHECK-LABEL: define void @static(
; INLINE: call void @llvm.memset.p0i8.i64(i8* align 4 {{.*}}, i8 -1, i64 4, i1 false)
; CALL: call void @__msan_poison_stack(i8* {{.*}}, i64 4)
-; ORIGIN: call void @__msan_set_alloca_origin(i8* {{.*}}, i64 4,
+; ORIGIN: call void @__msan_set_alloca_origin(i8* {{.*}}, i64 4, i8* {{.*}} [[D]],
; KMSAN: call void @__msan_poison_alloca(i8* {{.*}}, i64 4,
; CHECK: ret void
More information about the llvm-commits
mailing list