mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 19:20:12 +01:00
llvmpipe: Detect typos in LLVM intrinsics early.
This commit is contained in:
parent
1aede69d3a
commit
58f20b2b65
1 changed files with 7 additions and 0 deletions
|
|
@ -76,6 +76,13 @@ lp_build_intrinsic(LLVMBuilderRef builder,
|
|||
}
|
||||
assert(LLVMIsDeclaration(function));
|
||||
|
||||
if(name[0] == 'l' &&
|
||||
name[1] == 'l' &&
|
||||
name[2] == 'v' &&
|
||||
name[3] == 'm' &&
|
||||
name[4] == '.')
|
||||
assert(LLVMGetIntrinsicID(function));
|
||||
|
||||
return LLVMBuildCall(builder, function, args, num_args, "");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue