Permalink
Browse files

[llvm] Fix Build?Cmp invokation

  • Loading branch information...
1 parent d053a4f commit 2c68d0a88f5b3da6a99a414ca998e99fb6513e59 @bacek bacek committed with rurban Mar 30, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 runtime/parrot/library/LLVM/Builder.pm
View
8 runtime/parrot/library/LLVM/Builder.pm
@@ -225,16 +225,16 @@ class LLVM::Builder is LLVM::Opaque {
# # Comparisons
# LLVMBuildICmp => "ppippt",
- multi method icmp($op, LLVM::Value $left, LLVM::Value $right, :$name?) {
+ multi method icmp($op, LLVM::Value $left, LLVM::Value $right, :$name? = "") {
LLVM::Value.create(
- LLVM::call("BuildICmp", $op, $left, $right, $name)
+ LLVM::call("BuildICmp", self, $op, $left, $right, $name)
)
}
# LLVMBuildFCmp => "ppippt",
- multi method fcmp($op, LLVM::Value $left, LLVM::Value $right, :$name?) {
+ multi method fcmp($op, LLVM::Value $left, LLVM::Value $right, :$name? = "") {
LLVM::Value.create(
- LLVM::call("BuildFCmp", $op, $left, $right, $name)
+ LLVM::call("BuildFCmp", self, $op, $left, $right, $name)
)
}

0 comments on commit 2c68d0a

Please sign in to comment.