diff options
| author | Chris Lattner <sabre@nondot.org> | 2012-02-07 00:39:47 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2012-02-07 00:39:47 +0000 |
| commit | 8b418685e9e4f02f4eb2a76e1ec063e07552b68d (patch) | |
| tree | 50c93bcea5a0eb377d080632d3df630922262aa8 /lib/CodeGen/CGExpr.cpp | |
| parent | e91e0ae772004912285ccc3848b27208da8c045b (diff) | |
| download | clang-8b418685e9e4f02f4eb2a76e1ec063e07552b68d.tar.gz clang-8b418685e9e4f02f4eb2a76e1ec063e07552b68d.tar.bz2 clang-8b418685e9e4f02f4eb2a76e1ec063e07552b68d.tar.xz | |
simplify a bunch of code to use the well-known LLVM IR types computed by CodeGenModule.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index a5332a9aaf..00f4744ef4 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -881,8 +881,7 @@ RValue CodeGenFunction::EmitLoadOfBitfieldLValue(LValue LV) { } // Cast to the access type. - llvm::Type *PTy = llvm::Type::getIntNPtrTy(getLLVMContext(), - AI.AccessWidth, + llvm::Type *PTy = llvm::Type::getIntNPtrTy(getLLVMContext(), AI.AccessWidth, CGM.getContext().getTargetAddressSpace(LV.getType())); Ptr = Builder.CreateBitCast(Ptr, PTy); |
