summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/SwiftCallingConv.cpp
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2016-10-11 20:34:03 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2016-10-11 20:34:03 +0000
commit5d2c510cf64f1348f452acda7e5d1a35f08fd4eb (patch)
treed7b85d3109edb7ef9f1f1771140699981161cf32 /clang/lib/CodeGen/SwiftCallingConv.cpp
parente05e9502c523544a6e4cf27d80962c5f5eb55037 (diff)
downloadbcm5719-llvm-5d2c510cf64f1348f452acda7e5d1a35f08fd4eb.tar.gz
bcm5719-llvm-5d2c510cf64f1348f452acda7e5d1a35f08fd4eb.zip
Pass the end of a component to SwiftAggLowering's enumerateComponents callback
This is usefull for determining whether components overlap. llvm-svn: 283932
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 6c20f8c9d3e..a79ddf94bc8 100644
--- a/clang/lib/CodeGen/SwiftCallingConv.cpp
+++ b/clang/lib/CodeGen/SwiftCallingConv.cpp
@@ -506,7 +506,7 @@ void SwiftAggLowering::enumerateComponents(EnumerationCallback callback) const {
assert(Finished && "haven't yet finished lowering");
for (auto &entry : Entries) {
- callback(entry.Begin, entry.Type);
+ callback(entry.Begin, entry.End, entry.Type);
}
}
OpenPOWER on IntegriCloud