Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issue open64-compiler#33 for WHIRL2llvm
1. The w2ll will crash if compile the code like that: ``` typedef struct msa_struct { char **aseq; int alen; int nseq; } MSA; void WriteA2M1(MSA *msa) { int pos; char buf[64]; int cpl = 60; buf[cpl] = '\0'; for (pos = 0; pos < msa->alen; pos+=cpl) { strncpy(buf, &(msa->aseq[0][pos]), cpl); } } ``` 2. Error Log: ``` Assertion failure ../../../../osprey/ir_tools/whirl2llvm.cxx:5815: WHIRL2llvm::STMT2llvm, intrinsic(521) not handled ``` Signed-off-by: Zhijin Zeng <[email protected]>
- Loading branch information