diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 16:38:28 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 16:38:28 +0000 |
commit | 99d1b295031ea4e74630914c14f94d919aa8e8dc (patch) | |
tree | c7e01596b00004583d6c1df4d7097e7f5fb205b2 /llvm/lib/Support/SourceMgr.cpp | |
parent | 8b021c382d3e4afdf310ab8bbddd8012c7c9dc93 (diff) | |
download | llvm-99d1b295031ea4e74630914c14f94d919aa8e8dc.zip llvm-99d1b295031ea4e74630914c14f94d919aa8e8dc.tar.gz llvm-99d1b295031ea4e74630914c14f94d919aa8e8dc.tar.bz2 |
Use StringRef for MemoryBuffer identifier API (NFC)
llvm-svn: 283043
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
-rw-r--r-- | llvm/lib/Support/SourceMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp index b2f87d6..4cb9b2f 100644 --- a/llvm/lib/Support/SourceMgr.cpp +++ b/llvm/lib/Support/SourceMgr.cpp @@ -142,7 +142,7 @@ SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind, // location to pull out the source line. SmallVector<std::pair<unsigned, unsigned>, 4> ColRanges; std::pair<unsigned, unsigned> LineAndCol; - const char *BufferID = "<unknown>"; + StringRef BufferID = "<unknown>"; std::string LineStr; if (Loc.isValid()) { |