mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 14:45:50 +00:00
Assert that MCSymbolizer is constructed with a valid (or at least non-null)
RelocationInfo argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204893 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7f8e6b9a5d
commit
af0682b887
@ -47,7 +47,10 @@ protected:
|
||||
public:
|
||||
/// \brief Construct an MCSymbolizer, taking ownership of \p RelInfo.
|
||||
MCSymbolizer(MCContext &Ctx, std::unique_ptr<MCRelocationInfo> RelInfo)
|
||||
: Ctx(Ctx), RelInfo(std::move(RelInfo)) {}
|
||||
: Ctx(Ctx), RelInfo(std::move(RelInfo)) {
|
||||
assert(this->RelInfo != nullptr &&
|
||||
"Cannot construct MCSymbolizer without relocation info.");
|
||||
}
|
||||
|
||||
virtual ~MCSymbolizer();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user