[llvm] 6f4dd1b - [BuildLibCalls] Add memset_chk test.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 30 05:50:34 PST 2021


Author: Florian Hahn
Date: 2021-11-30T13:50:01Z
New Revision: 6f4dd1b2dca8ef877eb2447af8b33ae7e68ba1be

URL: https://github.com/llvm/llvm-project/commit/6f4dd1b2dca8ef877eb2447af8b33ae7e68ba1be
DIFF: https://github.com/llvm/llvm-project/commit/6f4dd1b2dca8ef877eb2447af8b33ae7e68ba1be.diff

LOG: [BuildLibCalls] Add memset_chk test.

Added: 
    

Modified: 
    llvm/test/Transforms/InferFunctionAttrs/annotate.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/InferFunctionAttrs/annotate.ll b/llvm/test/Transforms/InferFunctionAttrs/annotate.ll
index 586ad6a99cede..0e6923f018c49 100644
--- a/llvm/test/Transforms/InferFunctionAttrs/annotate.ll
+++ b/llvm/test/Transforms/InferFunctionAttrs/annotate.ll
@@ -643,6 +643,9 @@ declare i8* @memmove(i8*, i8*, i64)
 ; CHECK: declare i8* @memset(i8* writeonly, i32, i64) [[ARGMEMONLY_NOFREE_NOUNWIND_WILLRETURN:#[0-9]+]]
 declare i8* @memset(i8*, i32, i64)
 
+; CHECK: declare i8* @__memset_chk(i8*, i32, i64, i64) [[NOFREE:#[0-9]+]]
+declare i8* @__memset_chk(i8*, i32, i64, i64)
+
 ; CHECK: declare noundef i32 @mkdir(i8* nocapture noundef readonly, i16 noundef zeroext) [[NOFREE_NOUNWIND]]
 declare i32 @mkdir(i8*, i16 zeroext)
 
@@ -667,7 +670,7 @@ declare float @nearbyintf(float)
 ; CHECK: declare x86_fp80 @nearbyintl(x86_fp80) [[NOFREE_NOUNWIND_WILLRETURN]]
 declare x86_fp80 @nearbyintl(x86_fp80)
 
-; CHECK: declare noundef i32 @open(i8* nocapture noundef readonly, i32 noundef, ...) [[NOFREE:#[0-9]+]]
+; CHECK: declare noundef i32 @open(i8* nocapture noundef readonly, i32 noundef, ...) [[NOFREE]]
 declare i32 @open(i8*, i32, ...)
 
 ; CHECK-LINUX: declare noundef i32 @open64(i8* nocapture noundef readonly, i32 noundef, ...) [[NOFREE]]


        


More information about the llvm-commits mailing list