From 5d2c510cf64f1348f452acda7e5d1a35f08fd4eb Mon Sep 17 00:00:00 2001 From: Arnold Schwaighofer Date: Tue, 11 Oct 2016 20:34:03 +0000 Subject: Pass the end of a component to SwiftAggLowering's enumerateComponents callback This is usefull for determining whether components overlap. llvm-svn: 283932 --- clang/lib/CodeGen/SwiftCallingConv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/SwiftCallingConv.cpp') 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); } } -- cgit v1.2.3