[llvm-commits] [dragonegg] r96678 - /dragonegg/trunk/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Fri Feb 19 08:38:33 PST 2010
Author: baldrick
Date: Fri Feb 19 10:38:32 2010
New Revision: 96678
URL: http://llvm.org/viewvc/llvm-project?rev=96678&view=rev
Log:
Fix thinko in covariant thunk emission logic.
Modified:
dragonegg/trunk/llvm-backend.cpp
Modified: dragonegg/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-backend.cpp?rev=96678&r1=96677&r2=96678&view=diff
==============================================================================
--- dragonegg/trunk/llvm-backend.cpp (original)
+++ dragonegg/trunk/llvm-backend.cpp Fri Feb 19 10:38:32 2010
@@ -1711,7 +1711,7 @@
RetVal = Builder.CreatePtrToInt(RetVal, IntPtrTy);
Value *Offset = ConstantInt::get(IntPtrTy, node->thunk.fixed_offset);
RetVal = Builder.CreateNSWAdd(RetVal, Offset);
- RetVal = Builder.CreateIntToPtr(RetVal, Thunk->getType());
+ RetVal = Builder.CreateIntToPtr(RetVal, Thunk->getReturnType());
}
// Return the adjusted value.
More information about the llvm-commits
mailing list