aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-24 15:51:49 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-24 15:51:49 -0800
commit5dbcaabf71b885926a105db3ab725d4bd76c8f41 (patch)
treea60662ed8e07d8d278595486e19568f4d7544c2c /src
parent55cabe1fe0bee79f8d992954d9ece1245e1f01b9 (diff)
fix llvm.expect and add test
Diffstat (limited to 'src')
-rw-r--r--src/library.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js
index 671a6627..742e0968 100644
--- a/src/library.js
+++ b/src/library.js
@@ -5116,8 +5116,8 @@ LibraryManager.library = {
return ret;
},
- llvm_expect_i32__inline: function(x, y) {
- return '((' + x + ')==(' + y + '))';
+ llvm_expect_i32__inline: function(val, expected) {
+ return '(' + val + ')';
},
llvm_lifetime_start: function() {},