mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Remove more default address space argument usage.
These places are inconsequential in practice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207021 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -27,7 +27,8 @@ using namespace llvm;
|
||||
|
||||
/// CastToCStr - Return V if it is an i8*, otherwise cast it to i8*.
|
||||
Value *llvm::CastToCStr(Value *V, IRBuilder<> &B) {
|
||||
return B.CreateBitCast(V, B.getInt8PtrTy(), "cstr");
|
||||
unsigned AS = V->getType()->getPointerAddressSpace();
|
||||
return B.CreateBitCast(V, B.getInt8PtrTy(AS), "cstr");
|
||||
}
|
||||
|
||||
/// EmitStrLen - Emit a call to the strlen function to the builder, for the
|
||||
|
Reference in New Issue
Block a user