diff options
Diffstat (limited to 'lib/CodeGen/FunctionGen.cc')
| -rw-r--r-- | lib/CodeGen/FunctionGen.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/FunctionGen.cc b/lib/CodeGen/FunctionGen.cc index 2e927f9..c162b46 100644 --- a/lib/CodeGen/FunctionGen.cc +++ b/lib/CodeGen/FunctionGen.cc @@ -158,7 +158,8 @@ bool FunctionGen::validatePrototype(PrototypeAST *Proto) { return false; } if (Proto->getOwnerClass().empty()) { - if (!Proto->isExternal() && isReservedRuntimeName(Proto->getName())) { + // OVERLOAD symbols carry a signature and cannot replace libc symbols. + if (!Proto->isExternal() && !Proto->isOverload() && isReservedRuntimeName(Proto->getName())) { reportError("'%s' is a reserved runtime symbol and cannot be a FUNCTION/PROCEDURE name", Proto->getName().c_str()); return false; |
