aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/TargetParser.cpp
diff options
context:
space:
mode:
authorJing Pu <jingpu@google.com>2020-06-15 15:59:20 -0700
committerRiver Riddle <riddleriver@gmail.com>2020-06-15 16:15:12 -0700
commiteddf4dc869dbdedb81ab6f718b33d6db9f7cdaa1 (patch)
tree8a4bd8b8db5cee20d273bae9b51fdb9a4054c235 /llvm/lib/Support/TargetParser.cpp
parent2cfb027369e6e297c2dee70e56ec384afe883ec3 (diff)
downloadllvm-eddf4dc869dbdedb81ab6f718b33d6db9f7cdaa1.zip
llvm-eddf4dc869dbdedb81ab6f718b33d6db9f7cdaa1.tar.gz
llvm-eddf4dc869dbdedb81ab6f718b33d6db9f7cdaa1.tar.bz2
Fix SourceMgrDiagnosticHandler::convertLocToSMLoc for unknown line/column scenerio.
Summary: FileLineColLoc allows the column and line to be zero to represent unknown column and/or unknown line/column information. However, SourceMgr::FindLocForLineAndColumn treats line 0 and col 0 valid and pointing to the first line and col, respectively. To adapt this mismatch in semantics, we explicitly check line/col being zeros in SourceMgrDiagnosticHandler::convertLocToSMLoc Differential Revision: https://reviews.llvm.org/D80258
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
0 files changed, 0 insertions, 0 deletions