summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-16 21:00:16 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:33 +0100
commit58f20b2b65ec0237202dad2be5db6b29d3cf6e93 (patch)
tree1008f1d1c9c33e0e154b4567533fc95f13b17b4d /src
parent1aede69d3a8d288af11c2ef620b51e71c2ce89b2 (diff)
llvmpipe: Detect typos in LLVM intrinsics early.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_intr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_intr.c b/src/gallium/drivers/llvmpipe/lp_bld_intr.c
index a2051211b7..4f03ce7d0a 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, "");
}