diff options
author | Kevin Athey <kda@google.com> | 2021-09-28 11:08:32 -0700 |
---|---|---|
committer | Kevin Athey <kda@google.com> | 2021-09-28 11:30:37 -0700 |
commit | 0d76d4833dd2815e0b1c786250f474d222f6a0a1 (patch) | |
tree | 9c203b12a915d6f6693eb3caf506f69c6d1969b5 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | fd582eeffe582665eacac522617a15e17e9872cd (diff) | |
download | llvm-0d76d4833dd2815e0b1c786250f474d222f6a0a1.zip llvm-0d76d4833dd2815e0b1c786250f474d222f6a0a1.tar.gz llvm-0d76d4833dd2815e0b1c786250f474d222f6a0a1.tar.bz2 |
Revert "Simplify handling of builtin with inline redefinition"
This reverts commit 3d6f49a56995b845c40be5827ded5d1e3f692cec.
Broke bot: https://lab.llvm.org/buildbot/#/builders/5/builds/12360
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index da9a530..fddc1c4 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -1294,11 +1294,6 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, FunctionArgList Args; QualType ResTy = BuildFunctionArgList(GD, Args); - // Give a different name to inline builtin to avoid conflict with actual - // builtins. - if (FD->isInlineBuiltinDeclaration() && Fn) - Fn->setName(Fn->getName() + ".inline"); - // Check if we should generate debug info for this function. if (FD->hasAttr<NoDebugAttr>()) { // Clear non-distinct debug info that was possibly attached to the function |