diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2016-02-04 11:27:03 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2016-02-04 11:27:03 +0000 |
commit | 31300ed0a5044b2e9f608d0741e4a8601b08967c (patch) | |
tree | 208cdaedd5990f5da1c0fb5abd49da845f105226 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | e1649a7853ad419067110ee74b38f82cf54f697b (diff) | |
download | llvm-31300ed0a5044b2e9f608d0741e4a8601b08967c.zip llvm-31300ed0a5044b2e9f608d0741e4a8601b08967c.tar.gz llvm-31300ed0a5044b2e9f608d0741e4a8601b08967c.tar.bz2 |
[OPENMP 4.0] Fixed support of array sections/array subscripts.
Codegen for array sections/array subscripts worked only for expressions with arrays as base. Patch fixes codegen for bases with pointer/reference types.
llvm-svn: 259776
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index def41d2..33fcf0d 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1574,6 +1574,10 @@ public: AlignmentSource *Source = nullptr); LValue EmitLoadOfReferenceLValue(Address Ref, const ReferenceType *RefTy); + Address EmitLoadOfPointer(Address Ptr, const PointerType *PtrTy, + AlignmentSource *Source = nullptr); + LValue EmitLoadOfPointerLValue(Address Ptr, const PointerType *PtrTy); + /// CreateTempAlloca - This creates a alloca and inserts it into the entry /// block. The caller is responsible for setting an appropriate alignment on /// the alloca. |