separately from building the instruction so that it's
preserved even in -Asserts builds.
Employ C++'s mystical "comment" feature to discourage
breaking this in the future.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246991
91177308-0d34-0410-b5e6-
96231b3b80d8
allocaAlignment = alignment;
}
- address = CreateTempAlloca(allocaTy, allocaAlignment, D.getName());
+ // Create the alloca. Note that we set the name separately from
+ // building the instruction so that it's there even in no-asserts
+ // builds.
+ address = CreateTempAlloca(allocaTy, allocaAlignment);
+ address.getPointer()->setName(D.getName());
// Emit a lifetime intrinsic if meaningful. There's no point
// in doing this if we don't have a valid insertion point (?).