[PATCH] D48443: [WIP] Add no-prototype attribute to prototype-less C functions
Heejin Ahn via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 21 14:25:07 PDT 2018
aheejin added inline comments.
================
Comment at: lib/CodeGen/CGCall.cpp:1849
+ if (!AttrOnCallSite && !Fn->hasPrototype())
+ FuncAttrs.addAttribute("no-prototype");
AddAttributesFromFunctionProtoType(
----------------
Is there a reason why this is not something like `llvm::Attribute::NoPrototype` like other attributes?
Repository:
rC Clang
https://reviews.llvm.org/D48443
More information about the cfe-commits
mailing list