aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaModule.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-04-07 15:20:21 +0200
committerNikita Popov <npopov@redhat.com>2022-04-08 09:44:00 +0200
commita5a272a491406874e5147ba474182d30098ddfd4 (patch)
tree48196e21912f37d1575a1c6fcaf633ac6d5bf8c6 /clang/lib/Sema/SemaModule.cpp
parent088d38890ccee92d5ef6ae13ec1c50f9b0083866 (diff)
downloadllvm-a5a272a491406874e5147ba474182d30098ddfd4.zip
llvm-a5a272a491406874e5147ba474182d30098ddfd4.tar.gz
llvm-a5a272a491406874e5147ba474182d30098ddfd4.tar.bz2
[SafeStack] Don't create SCEV min between pointer and integer (PR54784)
Rather than rewriting the alloca pointer to zero, use removePointerBase() to drop the base pointer. This will simply bail if the base pointer is not the alloca. We could try doing something more fancy here (like dropping the sources not based on the alloca on the premise that they aren't SafeStack-relevant), but I don't think that's worthwhile. Fixes https://github.com/llvm/llvm-project/issues/54784. Differential Revision: https://reviews.llvm.org/D123309
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions