diff options
author | MalavikaSamak <malavika2@apple.com> | 2023-04-21 10:55:01 -0700 |
---|---|---|
committer | MalavikaSamak <malavika2@apple.com> | 2023-04-24 16:10:15 -0700 |
commit | 9bd0db80784e30d40a4a65f1b47109c833f05b54 (patch) | |
tree | 3197ffde19174825140fdd80c2b01b75a8907b85 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 1e8960c7a588c117bf703221ce656aeb034219c5 (diff) | |
download | llvm-9bd0db80784e30d40a4a65f1b47109c833f05b54.zip llvm-9bd0db80784e30d40a4a65f1b47109c833f05b54.tar.gz llvm-9bd0db80784e30d40a4a65f1b47109c833f05b54.tar.bz2 |
[-Wunsafe-buffer-usage] Bug fix: Handles the assertion violations for code within macros
When macros get expanded, the source location for the expanded code received by the Fixable
gadgets is invalid. We do not want to emit fixits for macro expanded code and it currently
crashes the analysis. This patch fixes the assertion violations that were introduced for
handling code with such invalid locations.
Reviewed by: NoQ, ziqingluo-90, jkorous
Differential revision: https://reviews.llvm.org/D146450
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions