diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2015-07-09 02:09:28 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2015-07-09 02:09:28 +0000 |
commit | 5c183d5239f506aad444bddcd158321f5fea0e2f (patch) | |
tree | 03fc5cf08ed4aceb2c9cfc6c9d6fde0809252f0b /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | 9639d650bbf60345ed174787039d5463ab4fc927 (diff) | |
download | bcm5719-llvm-5c183d5239f506aad444bddcd158321f5fea0e2f.tar.gz bcm5719-llvm-5c183d5239f506aad444bddcd158321f5fea0e2f.zip |
Make getByValTypeAlignment() taking DataLayout as an argument
Summary:
This change is part of a series of commits dedicated to have a single
DataLayout during compilation by using always the one owned by the
module.
Reviewers: echristo
Subscribers: yaron.keren, rafael, llvm-commits, jholewinski
Differential Revision: http://reviews.llvm.org/D11038
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 241777
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 4e7af89ed97..2b9ba2c1b53 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -976,7 +976,7 @@ bool FastISel::lowerCallTo(CallLoweringInfo &CLI) { // not there, but there are cases it cannot get right. unsigned FrameAlign = Arg.Alignment; if (!FrameAlign) - FrameAlign = TLI.getByValTypeAlignment(ElementTy); + FrameAlign = TLI.getByValTypeAlignment(ElementTy, DL); Flags.setByValSize(FrameSize); Flags.setByValAlign(FrameAlign); } |