llvm-project
llvm-project copied to clipboard
nullptr passed as operand argument to the call to __kmpc_fork_teams
| Bugzilla Link | 46587 |
| Version | trunk |
| OS | All |
| Attachments | small test case |
| CC | @alexey-bataev,@hfinkel,@jdoerfert |
Extended Description
clang -cc1 -fopenmp -emit-llvm -o - x.c Operand is null call void (%struct.ident_t*, i32, void (i32*, i32*, ...), ...) @__kmpc_fork_teams(%struct.ident_t @2, i32 4, void (i32*, i32*, ...)* bitcast (void (i32*, i32*, i64, i32*, i32*, i32*)* @.omp_outlined. to void (i32*, i32*, ...)), <null operand!>, i32 %conv, i32* %1, i32* %conv1) in function __omp_offloading_806_190148a_main_l9 fatal error: error in backend: Broken function found, compilation aborted!
It seem when generate Argement for data[n], the VLASizeMap is not set. So nullptr gets pass to function call of __kmpc_fork_teams