diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2015-09-10 01:46:39 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2015-09-10 01:46:39 +0000 |
commit | 57a41913edf328cc155806639d2f33e10d3b6a6d (patch) | |
tree | d127b86258abf1de95a65f52f21cd79d34f3d457 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 8d4611648fafa9696eb372df5242c1c2874b4f8d (diff) | |
download | bcm5719-llvm-57a41913edf328cc155806639d2f33e10d3b6a6d.tar.gz bcm5719-llvm-57a41913edf328cc155806639d2f33e10d3b6a6d.zip |
EmitRecord* API change: accepts ArrayRef instead of a SmallVector (NFC)
This reapply a variant commit r247179 after post-commit review from
D.Blaikie.
Hopefully I got it right this time: lifetime of initializer list ends
as with any expression, which make invalid the pattern:
ArrayRef<int> Arr = { 1, 2, 3, 4};
Just like StringRef, ArrayRef shouldn't be used to initialize local
variable but only as function argument.
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 247233
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions