Skip to content

Commit a7f1702

Browse files
authored
[NFC] [CFI] correct comment in test (llvm#152399)
It incorrectly stated that `const char*` gets normalized to ptr, while it should say that `char*` does.
1 parent 7d3134f commit a7f1702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/CodeGen/cfi-icall-generalize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %clang_cc1 -triple x86_64-unknown-linux -fsanitize=cfi-icall -fsanitize-trap=cfi-icall -emit-llvm -o - %s | FileCheck --check-prefix=CHECK --check-prefix=UNGENERALIZED %s
22
// RUN: %clang_cc1 -triple x86_64-unknown-linux -fsanitize=cfi-icall -fsanitize-trap=cfi-icall -fsanitize-cfi-icall-generalize-pointers -emit-llvm -o - %s | FileCheck --check-prefix=CHECK --check-prefix=GENERALIZED %s
33

4-
// Test that const char* is generalized to const ptr and that const char** is
4+
// Test that const char* is generalized to const ptr and that char** is
55
// generalized to ptr
66

77
// CHECK: define{{.*}} ptr @f({{.*}} !type [[TYPE:![0-9]+]] !type [[TYPE_GENERALIZED:![0-9]+]]

0 commit comments

Comments
 (0)