Skip to content
Snippets Groups Projects
Commit 4c35d598 authored by Fangrui Song's avatar Fangrui Song
Browse files

[docs] -fsanitize=cfi only allowed with -fvisibility=

llvm-svn: 334870
parent dc705a6a
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ Example:
10 A a;
11 g(&a);
12 }
$ clang++ -fsanitize=cfi -flto -fuse-ld=gold vcall.cc -fsanitize-stats -g
$ clang++ -fsanitize=cfi -fvisibility=hidden -flto -fuse-ld=gold vcall.cc -fsanitize-stats -g
$ SANITIZER_STATS_PATH=a.stats ./a.out
$ sanstats a.stats
vcall.cc:6 _Z1gP1A cfi-vcall 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment