diff options
author | John McCall <rjmccall@apple.com> | 2011-02-22 06:44:22 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-02-22 06:44:22 +0000 |
commit | c533cb7008cfc03f94da72029445bc429e39210d (patch) | |
tree | 40dfb309f9dd8a8eeab2db6963ce9d0ec8f2d543 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | fb1a79af7aff4cec44a4a0d2a83bb081cf702151 (diff) | |
download | bcm5719-llvm-c533cb7008cfc03f94da72029445bc429e39210d.tar.gz bcm5719-llvm-c533cb7008cfc03f94da72029445bc429e39210d.zip |
Reorganize the emission of local variables.
llvm-svn: 126189
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 9e5d7cf1127..a8453c31d54 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -97,6 +97,8 @@ CodeGenModule::CodeGenModule(ASTContext &C, const CodeGenOptions &CGO, Int32Ty = llvm::Type::getInt32Ty(LLVMContext); Int64Ty = llvm::Type::getInt64Ty(LLVMContext); PointerWidthInBits = C.Target.getPointerWidth(0); + PointerAlignInBytes = + C.toCharUnitsFromBits(C.Target.getPointerAlign(0)).getQuantity(); IntTy = llvm::IntegerType::get(LLVMContext, C.Target.getIntWidth()); IntPtrTy = llvm::IntegerType::get(LLVMContext, PointerWidthInBits); Int8PtrTy = Int8Ty->getPointerTo(0); |