[PATCH] D123198: [LibCalls] Add argument extension attributes to more functions.

Alex Gatea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 13:06:39 PDT 2022


alexgatea added a comment.

When I compile the following valid test case:

  #include <string.h>
  int main(){
     char a[]="123";
     char b[5];
  
    memset(b, 0, 5);
      __builtin___stpncpy_chk (b, a, 2, 5);
  }

An Assert in BuildLibCalls.cpp fails:

  llvm::FunctionCallee llvm::getOrInsertLibFunc(llvm::Module *, const llvm::TargetLibraryInfo &, llvm::LibFunc, llvm::FunctionType *, llvm::AttributeList): Assertion `!isa<IntegerType>(T->getParamType(i)) && "Unhandled integer argument."' failed.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123198/new/

https://reviews.llvm.org/D123198



More information about the llvm-commits mailing list