Excuse me, reverted in r213431. CGBuilder doesn't name with -Asserts. setName() is still required here.
2014-07-19 6:29 GMT+09:00 Alexey Samsonov <[email protected]>: > Author: samsonov > Date: Fri Jul 18 16:29:55 2014 > New Revision: 213415 > > URL: http://llvm.org/viewvc/llvm-project?rev=213415&view=rev > Log: > Merge two lines > > Modified: > cfe/trunk/lib/CodeGen/CGDecl.cpp > > Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDecl.cpp?rev=213415&r1=213414&r2=213415&view=diff > ============================================================================== > --- cfe/trunk/lib/CodeGen/CGDecl.cpp (original) > +++ cfe/trunk/lib/CodeGen/CGDecl.cpp Fri Jul 18 16:29:55 2014 > @@ -907,8 +907,7 @@ CodeGenFunction::EmitAutoVarAlloca(const > if (isByRef) > LTy = BuildByRefType(&D); > > - llvm::AllocaInst *Alloc = CreateTempAlloca(LTy); > - Alloc->setName(D.getName()); > + llvm::AllocaInst *Alloc = CreateTempAlloca(LTy, D.getName()); > > CharUnits allocaAlignment = alignment; > if (isByRef) > > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
