File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
llvm/lib/Transforms/Instrumentation Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1516,13 +1516,13 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
1516
1516
Value *InstName = nullptr ;
1517
1517
if (ClEmbedFaultingInst != MSanEmbedFaultingInstructionMode::None) {
1518
1518
IRBuilder<> IRB0 (Instruction);
1519
- std::string str;
1520
1519
StringRef InstNameStrRef;
1521
1520
1522
1521
// Dumping the full instruction is expensive because the operands etc.
1523
1522
// likely make the string unique per instruction instance, hence we
1524
1523
// offer a choice whether to only print the instruction name.
1525
1524
if (ClEmbedFaultingInst == MSanEmbedFaultingInstructionMode::Full) {
1525
+ std::string str;
1526
1526
llvm::raw_string_ostream buf (str);
1527
1527
Instruction->print (buf);
1528
1528
InstNameStrRef = StringRef (str);
You can’t perform that action at this time.
0 commit comments