File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/Transforms/Instrumentation Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3430,12 +3430,12 @@ void FunctionStackPoisoner::processStaticAllocas() {
3430
3430
SmallVector<ASanStackVariableDescription, 16 > SVD;
3431
3431
SVD.reserve (AllocaVec.size ());
3432
3432
for (AllocaInst *AI : AllocaVec) {
3433
- std::string Name = AI->getName ().data ();
3433
+ const char * Name = AI->getName ().data ();
3434
3434
if (AI->hasMetadata (" OriginalName" )) {
3435
3435
MDTuple *tuple = dyn_cast<MDTuple>(AI->getMetadata (" OriginalName" ));
3436
- Name = dyn_cast<MDString>(tuple->getOperand (0 ))->getString ();
3436
+ Name = dyn_cast<MDString>(tuple->getOperand (0 ))->getString (). data () ;
3437
3437
}
3438
- ASanStackVariableDescription D = {Name. c_str () ,
3438
+ ASanStackVariableDescription D = {Name,
3439
3439
ASan.getAllocaSizeInBytes (*AI),
3440
3440
0 ,
3441
3441
AI->getAlign ().value (),
You can’t perform that action at this time.
0 commit comments