File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,16 @@ you may need to disable inlining (just use ``-O1``) and tail call elimination
4949 }
5050
5151 # Compile and link
52- % clang -O1 -g -fsanitize=address -fno-omit-frame-pointer example_UseAfterFree.cc
52+ % clang++ -O1 -g -fsanitize=address -fno-omit-frame-pointer example_UseAfterFree.cc
5353
5454 or:
5555
5656.. code-block :: console
5757
5858 # Compile
59- % clang -O1 -g -fsanitize=address -fno-omit-frame-pointer -c example_UseAfterFree.cc
59+ % clang++ -O1 -g -fsanitize=address -fno-omit-frame-pointer -c example_UseAfterFree.cc
6060 # Link
61- % clang -g -fsanitize=address example_UseAfterFree.o
61+ % clang++ -g -fsanitize=address example_UseAfterFree.o
6262
6363 If a bug is detected, the program will print an error message to stderr and
6464exit with a non-zero exit code. AddressSanitizer exits on the first detected error.
You can’t perform that action at this time.
0 commit comments