summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorKen Dyck <ken.dyck@onsemi.com>2009-12-18 15:55:54 +0000
committerKen Dyck <ken.dyck@onsemi.com>2009-12-18 15:55:54 +0000
commit01e620efaab4a43d3a0363f11ba9270ec2b29a78 (patch)
tree367bab83ec9d466231763095c966ba96e08a99fc /clang/lib/CodeGen
parentacfe6aa83a1a841f9ba84cb214c5c7cae4a28473 (diff)
downloadbcm5719-llvm-01e620efaab4a43d3a0363f11ba9270ec2b29a78.tar.gz
bcm5719-llvm-01e620efaab4a43d3a0363f11ba9270ec2b29a78.zip
Change the return type of ASTContext::getTypeSizeInChars() from uint64_t to the
new opaque value type, CharUnits. This will help us avoid accidentally mixing quantities that are in bit and character units. llvm-svn: 91689
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 3db3eefc1e6..72dc8373ca1 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -471,7 +471,8 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) {
const llvm::Type *IntPtr =
llvm::IntegerType::get(VMContext, LLVMPointerWidth);
llvm::Value *SizeVal =
- llvm::ConstantInt::get(IntPtr, getContext().getTypeSizeInChars(Ty));
+ llvm::ConstantInt::get(IntPtr,
+ getContext().getTypeSizeInChars(Ty).getRaw());
const llvm::Type *BP = llvm::Type::getInt8PtrTy(VMContext);
if (Loc->getType() != BP)
OpenPOWER on IntegriCloud