From 58f20b2b65ec0237202dad2be5db6b29d3cf6e93 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sun, 16 Aug 2009 21:00:16 +0100 Subject: [PATCH] llvmpipe: Detect typos in LLVM intrinsics early. --- src/gallium/drivers/llvmpipe/lp_bld_intr.c | 7 +++++++ 1 file changed, 7 insertions(+) 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, ""); } -- 2.30.2