diff options
author | Duncan Sands <baldrick@free.fr> | 2009-11-23 10:49:03 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-11-23 10:49:03 +0000 |
commit | d301b553c36bae9bdd8d41b768f093760cb3f7e9 (patch) | |
tree | 2cb12f61c7862a457d19dfeacb71eae940c8f6ea /lib/VMCore | |
parent | 951cb61e2fc34e1f6c2324b9613985191e87fe49 (diff) | |
download | external_llvm-d301b553c36bae9bdd8d41b768f093760cb3f7e9.zip external_llvm-d301b553c36bae9bdd8d41b768f093760cb3f7e9.tar.gz external_llvm-d301b553c36bae9bdd8d41b768f093760cb3f7e9.tar.bz2 |
I forgot to update the prototype for LLVMBuildIntCast when correcting
the body to not pass the name for the isSigned parameter. However it
seems that changing prototypes is a big-no-no, so here I revert the
previous change and pass "true" for isSigned, meaning this always does
a signed cast, which was the previous behaviour assuming the name was
not NULL! Some other C function needs to be introduced for the general
case of signed or unsigned casts. This hopefully unbreaks the ocaml
binding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Core.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index 78cd4dc..449e967 100644 --- a/lib/VMCore/Core.cpp +++ b/lib/VMCore/Core.cpp @@ -1860,9 +1860,9 @@ LLVMValueRef LLVMBuildPointerCast(LLVMBuilderRef B, LLVMValueRef Val, } LLVMValueRef LLVMBuildIntCast(LLVMBuilderRef B, LLVMValueRef Val, - LLVMTypeRef DestTy, int isSigned, - const char *Name) { - return wrap(unwrap(B)->CreateIntCast(unwrap(Val), unwrap(DestTy), isSigned, Name)); + LLVMTypeRef DestTy, const char *Name) { + return wrap(unwrap(B)->CreateIntCast(unwrap(Val), unwrap(DestTy), + /*isSigned*/true, Name)); } LLVMValueRef LLVMBuildFPCast(LLVMBuilderRef B, LLVMValueRef Val, |