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 | d2b88ab3137841c92712729c759a84a89db2c7b7 (patch) | |
tree | 73717f810ad94e567e20795979fef5f38e1dc92d /clang/CodeGen/CodeGenTypes.cpp | |
parent | b6719478b9205eae0aee99c3bfa4d2f7e076c3cb (diff) | |
download | bcm5719-llvm-d2b88ab3137841c92712729c759a84a89db2c7b7.tar.gz bcm5719-llvm-d2b88ab3137841c92712729c759a84a89db2c7b7.zip |
Implement codegen for + and - with pointers. Patch contributed by
Keith Bauer.
llvm-svn: 39793
Diffstat (limited to 'clang/CodeGen/CodeGenTypes.cpp')
-rw-r--r-- | clang/CodeGen/CodeGenTypes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/CodeGen/CodeGenTypes.cpp b/clang/CodeGen/CodeGenTypes.cpp index f0b77908beb..a75ac4ce751 100644 --- a/clang/CodeGen/CodeGenTypes.cpp +++ b/clang/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 { |