diff options
author | Erich Keane <erich.keane@intel.com> | 2019-10-11 14:59:44 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2019-10-11 14:59:44 +0000 |
commit | f759395994212fbefbd540cd4565c6b4fa304ecd (patch) | |
tree | 817db539045c22d210c90e84975282088fde81ce /clang/lib/CodeGen/CodeGenFunction.h | |
parent | c4995076c6bd3706918930de436246ec4257c364 (diff) | |
download | bcm5719-llvm-f759395994212fbefbd540cd4565c6b4fa304ecd.tar.gz bcm5719-llvm-f759395994212fbefbd540cd4565c6b4fa304ecd.zip |
Reland r374450 with Richard Smith's comments and test fixed.
The behavior from the original patch has changed, since we're no longer
allowing LLVM to just ignore the alignment. Instead, we're just
assuming the maximum possible alignment.
Differential Revision: https://reviews.llvm.org/D68824
llvm-svn: 374562
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index ea78309a069..bb4fed80837 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2829,13 +2829,8 @@ public: llvm::Value *Alignment, llvm::Value *OffsetValue = nullptr); - void EmitAlignmentAssumption(llvm::Value *PtrValue, QualType Ty, - SourceLocation Loc, SourceLocation AssumptionLoc, - unsigned Alignment, - llvm::Value *OffsetValue = nullptr); - void EmitAlignmentAssumption(llvm::Value *PtrValue, const Expr *E, - SourceLocation AssumptionLoc, unsigned Alignment, + SourceLocation AssumptionLoc, llvm::Value *Alignment, llvm::Value *OffsetValue = nullptr); //===--------------------------------------------------------------------===// |