Skip to content

Instantly share code, notes, and snippets.

@kripken
Created October 12, 2011 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kripken/1279918 to your computer and use it in GitHub Desktop.
Save kripken/1279918 to your computer and use it in GitHub Desktop.
diff --git a/src/parseTools.js b/src/parseTools.js
index 7d62b34..c90391f 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -405,15 +405,15 @@ function parseLLVMSegment(segment) {
function cleanSegment(segment) {
while (segment.length >= 2 && ['noalias', 'sret', 'nocapture', 'nest', 'zeroext', 'signext'].indexOf(segment[1].text) != -1) {
segment.splice(1, 1);
}
return segment;
}
-PARSABLE_LLVM_FUNCTIONS = set('getelementptr', 'bitcast', 'inttoptr', 'ptrtoint', 'mul', 'icmp', 'zext', 'sub', 'add', 'div');
+PARSABLE_LLVM_FUNCTIONS = set('getelementptr', 'bitcast', 'inttoptr', 'ptrtoint', 'mul', 'icmp', 'zext', 'sub', 'add', 'div', 'null');
// Parses a function call of form
// TYPE functionname MODIFIERS (...)
// e.g.
// i32* getelementptr inbounds (...)
function parseLLVMFunctionCall(segment) {
segment = segment.slice(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment