summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenTypes.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-13 03:05:23 +0000
committerChris Lattner <sabre@nondot.org>2007-07-13 03:05:23 +0000
commitd2b88ab3137841c92712729c759a84a89db2c7b7 (patch)
tree73717f810ad94e567e20795979fef5f38e1dc92d /clang/CodeGen/CodeGenTypes.cpp
parentb6719478b9205eae0aee99c3bfa4d2f7e076c3cb (diff)
downloadbcm5719-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.cpp2
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 {
OpenPOWER on IntegriCloud