diff options
Diffstat (limited to 'backend/lib/CodeGen/MachineFunction.cpp')
| -rw-r--r-- | backend/lib/CodeGen/MachineFunction.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/backend/lib/CodeGen/MachineFunction.cpp b/backend/lib/CodeGen/MachineFunction.cpp index 7f4c3a9..b870858 100644 --- a/backend/lib/CodeGen/MachineFunction.cpp +++ b/backend/lib/CodeGen/MachineFunction.cpp @@ -57,8 +57,6 @@ private: Expected<std::unique_ptr<MachineFunction>> MachineFunction::create(std::string Name, MachineFunctionStableID StableID) { - if (Name.empty()) - return makeUnexpected(ErrorCode::InvalidArgument, "machine function name cannot be empty"); if (!StableID.isValid()) return makeUnexpected(ErrorCode::InvalidArgument, "machine function StableID must be valid"); return std::unique_ptr<MachineFunction>(new MachineFunction(std::move(Name), StableID)); |
