diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-02-15 03:45:18 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-02-15 03:45:18 +0000 |
| commit | c0571e1261ab0f023e7d348a221327b4a42e1a3d (patch) | |
| tree | 4c042d5199b4dfa71b2d156fa623a8af31b04791 | |
| parent | f4fdc8aba00d8a8508af7ed86cab2dbc7f17ed08 (diff) | |
| download | bcm5719-llvm-c0571e1261ab0f023e7d348a221327b4a42e1a3d.tar.gz bcm5719-llvm-c0571e1261ab0f023e7d348a221327b4a42e1a3d.zip | |
ELF: silence -Wcast-qual warnings from GCC
Silence 4 -Wcast-qual warnings from GCC 5.1. NFC.
llvm-svn: 260871
| -rw-r--r-- | lld/ELF/OutputSections.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 85002f4ba50..ab41d3ada65 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -1027,10 +1027,10 @@ uint8_t EHOutputSection<ELFT>::getFdeEncoding(ArrayRef<uint8_t> D) { if (Version != 1 && Version != 3) fatal("FDE version 1 or 3 expected, but got " + Twine((unsigned)Version)); - auto AugEnd = std::find(D.begin() + 1, D.end(), '\0'); + const unsigned char *AugEnd = std::find(D.begin() + 1, D.end(), '\0'); if (AugEnd == D.end()) fatal("corrupted CIE"); - StringRef Aug((char *)D.begin(), AugEnd - D.begin()); + StringRef Aug(reinterpret_cast<const char *>(D.begin()), AugEnd - D.begin()); D = D.slice(Aug.size() + 1); // Code alignment factor should always be 1 for .eh_frame. |

