diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-11-23 13:10:07 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-11-23 13:10:07 +0000 |
commit | 66039d39e1d1a0363b7a0616f093e031e7a42cb3 (patch) | |
tree | e82c8d5722b15a26cd64b0e12b8b65641e8f2a20 /llvm/lib/Target/TargetMachineC.cpp | |
parent | 8a3c49897f26525bfef41ec32603f3bc74d5c561 (diff) | |
download | bcm5719-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/TargetMachineC.cpp')
0 files changed, 0 insertions, 0 deletions