diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-13 03:05:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-13 03:05:23 +0000 |
commit | 8b9023ba35a86838789e2c9034a6128728c547aa (patch) | |
tree | c9eec99bbdc78aab992b202d1f1b5180bc19b9d3 /CodeGen/CodeGenTypes.cpp | |
parent | b7b50bc29bf832e0bba25b2963afeed61d7d9e2a (diff) |
Implement codegen for + and - with pointers. Patch contributed by
Keith Bauer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenTypes.cpp')
-rw-r--r-- | CodeGen/CodeGenTypes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CodeGen/CodeGenTypes.cpp b/CodeGen/CodeGenTypes.cpp index f0b77908be..a75ac4ce75 100644 --- a/CodeGen/CodeGenTypes.cpp +++ b/CodeGen/CodeGenTypes.cpp @@ -88,7 +88,7 @@ const llvm::Type *CodeGenTypes::ConvertType(QualType T) { "FIXME: We only handle trivial array types so far!"); llvm::APSInt Size(32); - if (A.getSize() && A.getSize()->isIntegerConstantExpr(Size)) { + if (A.getSizeExpr() && A.getSizeExpr()->isIntegerConstantExpr(Size)) { const llvm::Type *EltTy = ConvertType(A.getElementType()); return llvm::ArrayType::get(EltTy, Size.getZExtValue()); } else { |