summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Target.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-11-23 13:10:07 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-11-23 13:10:07 +0000
commit66039d39e1d1a0363b7a0616f093e031e7a42cb3 (patch)
treee82c8d5722b15a26cd64b0e12b8b65641e8f2a20 /llvm/lib/Target/Target.cpp
parent8a3c49897f26525bfef41ec32603f3bc74d5c561 (diff)
downloadbcm5719-llvm-66039d39e1d1a0363b7a0616f093e031e7a42cb3.tar.gz
bcm5719-llvm-66039d39e1d1a0363b7a0616f093e031e7a42cb3.zip
[clang-rename] Fix non-functional offset check.
Adding something to a SourceLocation will only produce an invalid SourceLocation in edge cases (overflow or adding 0 to an invalid one). Check that the offset is inside the file instead and add a test case to verify that the error message works. llvm-svn: 287758
Diffstat (limited to 'llvm/lib/Target/Target.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud