From: José Fonseca Date: Sun, 16 Aug 2009 20:00:16 +0000 (+0100) Subject: llvmpipe: Detect typos in LLVM intrinsics early. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58f20b2b65ec0237202dad2be5db6b29d3cf6e93;p=mesa.git llvmpipe: Detect typos in LLVM intrinsics early. --- diff --git a/src/gallium/drivers/llvmpipe/lp_bld_intr.c b/src/gallium/drivers/llvmpipe/lp_bld_intr.c index a2051211b7a..4f03ce7d0a9 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_intr.c +++ b/src/gallium/drivers/llvmpipe/lp_bld_intr.c @@ -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, ""); }