aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorNathan Lanza <nathan@lanza.io>2018-11-15 19:49:57 +0000
committerNathan Lanza <nathan@lanza.io>2018-11-15 19:49:57 +0000
commita0d52cbdc94f9d33de4587c57d3a392d2f970981 (patch)
tree83357641a368b18c5f24aa21a0f2ac62f1e716e1 /llvm/lib/Bitcode
parentcc14a3241161313c9f238c22134aba6140a91597 (diff)
downloadllvm-a0d52cbdc94f9d33de4587c57d3a392d2f970981.zip
llvm-a0d52cbdc94f9d33de4587c57d3a392d2f970981.tar.gz
llvm-a0d52cbdc94f9d33de4587c57d3a392d2f970981.tar.bz2
Add a check whether or not a str is utf8 prior to emplacing
Summary: Highlighing junk data on VSCode can send a query for evaluate which fails. In particular cases on Windows, this the error message can end up as a c-string of [-35,-35,-35,-35,...]. Attempting to emplace this as the error message causes an assert failure. Prior to emplacing the error message, confirm that it is valid UTF8 to eliminate errors such as mentione above. Reviewers: xiaobai, clayborg Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D53008 llvm-svn: 346988
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions