diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-01-09 10:10:59 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-01-09 10:10:59 +0000 |
commit | 43f6d1b67e3f0abeafe0952d6af76e42f8256e08 (patch) | |
tree | 3d0ba4bf3e21ce1c927afd958a287523643f0fa5 | |
parent | ad6e1f05018fc435c78b468453ec8e7e0f3ddaf1 (diff) | |
download | bcm5719-llvm-43f6d1b67e3f0abeafe0952d6af76e42f8256e08.tar.gz bcm5719-llvm-43f6d1b67e3f0abeafe0952d6af76e42f8256e08.zip |
Fix a cut-paste-o so that the sample code is correct for my last note.
Also, switch to a more clear 'sink' function with its declaration to
avoid any confusion about 'g'. Thanks for the suggestion Frits.
llvm-svn: 123113
-rw-r--r-- | llvm/lib/Target/README.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt index ff392f491d7..7d90795aa3b 100644 --- a/llvm/lib/Target/README.txt +++ b/llvm/lib/Target/README.txt @@ -2143,7 +2143,8 @@ clang -O3 -fno-exceptions currently compiles this code: void f(int N) { std::vector<int> v(N); - g(v); + + extern void sink(void*); sink(&v); } into @@ -2198,7 +2199,10 @@ clang -O3 -fno-exceptions currently compiles this code: void f(int N) { std::vector<int> v(N); - g(v); + for (int k = 0; k < N; ++k) + v[k] = 0; + + extern void sink(void*); sink(&v); } into almost the same as the previous note, but replace its final BB with: |