[llvm-commits] [dragonegg] r166962 - /dragonegg/trunk/src/ConstantConversion.cpp
Duncan Sands
baldrick at free.fr
Mon Oct 29 12:50:54 PDT 2012
Author: baldrick
Date: Mon Oct 29 14:50:54 2012
New Revision: 166962
URL: http://llvm.org/viewvc/llvm-project?rev=166962&view=rev
Log:
Fix compilation after change of getIntPtrType signature.
Modified:
dragonegg/trunk/src/ConstantConversion.cpp
Modified: dragonegg/trunk/src/ConstantConversion.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/ConstantConversion.cpp?rev=166962&r1=166961&r2=166962&view=diff
==============================================================================
--- dragonegg/trunk/src/ConstantConversion.cpp (original)
+++ dragonegg/trunk/src/ConstantConversion.cpp Mon Oct 29 14:50:54 2012
@@ -295,7 +295,7 @@
llvm_unreachable("Unsupported type!");
case Type::PointerTyID: {
// Cast to an integer with the same number of bits and return that.
- IntegerType *IntTy = getDataLayout().getIntPtrType(Ty);
+ Type *IntTy = getDataLayout().getIntPtrType(Ty);
return BitSlice(0, StoreSize, Folder.CreatePtrToInt(C, IntTy));
}
case Type::DoubleTyID:
@@ -445,7 +445,7 @@
case Type::PointerTyID: {
// Interpret as an integer with the same number of bits then cast back to
// the original type.
- IntegerType *IntTy = getDataLayout().getIntPtrType(Ty);
+ Type *IntTy = getDataLayout().getIntPtrType(Ty);
C = InterpretAsType(C, IntTy, StartingBit, Folder);
return Folder.CreateIntToPtr(C, Ty);
}
More information about the llvm-commits
mailing list