[all-commits] [llvm/llvm-project] b8d121: [CodeGen] Require use of Address::invalid() for in...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Tue Dec 14 03:06:24 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b8d121eb1d619adca637bfd926d08a095c93b117
https://github.com/llvm/llvm-project/commit/b8d121eb1d619adca637bfd926d08a095c93b117
Author: Nikita Popov <npopov at redhat.com>
Date: 2021-12-14 (Tue, 14 Dec 2021)
Changed paths:
M clang/lib/CodeGen/Address.h
M clang/lib/CodeGen/CGCall.cpp
M clang/lib/CodeGen/CGCleanup.h
M clang/lib/CodeGen/CGExprAgg.cpp
M clang/lib/CodeGen/CGValue.h
Log Message:
-----------
[CodeGen] Require use of Address::invalid() for invalid address (NFC)
This no longer allows creating an invalid Address through the regular
constructor. There were only two places that did this (AggValueSlot
and EHCleanupScope) which did this by converting a potential nullptr
into an Address. I've fixed both of these by directly storing an
Address instead.
This is intended as a bit of preliminary cleanup for D103465.
Differential Revision: https://reviews.llvm.org/D115630
More information about the All-commits
mailing list