aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/SwiftCallingConv.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2016-04-04 20:39:50 +0000
committerJohn McCall <rjmccall@apple.com>2016-04-04 20:39:50 +0000
commit8cde42c40084bc62c3fbffbc2ed8b118813a008c (patch)
tree9f961ab379a090a5a85124c0855b77d3c940e12e /clang/lib/CodeGen/SwiftCallingConv.cpp
parentb810b02b853dc4e42d641cea24bc853f1894b9f0 (diff)
downloadllvm-8cde42c40084bc62c3fbffbc2ed8b118813a008c.zip
llvm-8cde42c40084bc62c3fbffbc2ed8b118813a008c.tar.gz
llvm-8cde42c40084bc62c3fbffbc2ed8b118813a008c.tar.bz2
Fix an unused-variable warning by using the variable in the place
it was supposed to have been used. llvm-svn: 265344
Diffstat (limited to 'clang/lib/CodeGen/SwiftCallingConv.cpp')
-rw-r--r--clang/lib/CodeGen/SwiftCallingConv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/SwiftCallingConv.cpp b/clang/lib/CodeGen/SwiftCallingConv.cpp
index 6fae19f..44b46f6 100644
--- a/clang/lib/CodeGen/SwiftCallingConv.cpp
+++ b/clang/lib/CodeGen/SwiftCallingConv.cpp
@@ -239,7 +239,7 @@ void SwiftAggLowering::addLegalTypedData(llvm::Type *type,
auto eltSize = (end - begin) / numElts;
assert(eltSize == getTypeStoreSize(CGM, eltTy));
for (size_t i = 0, e = numElts; i != e; ++i) {
- addLegalTypedData(type, begin, begin + eltSize);
+ addLegalTypedData(eltTy, begin, begin + eltSize);
begin += eltSize;
}
assert(begin == end);