Skip to content

Commit 85649e7

Browse files
committed
Fix AsmPrinter.
1 parent 58738c3 commit 85649e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1998,7 +1998,7 @@ void AsmPrinter::emitFunctionBody() {
19981998
MCSymbol *PrefetchTargetSymbol = OutContext.getOrCreateSymbol(
19991999
Twine("__llvm_prefetch_target_") + MF->getName() + Twine("_") +
20002000
utostr(MBB.getBBID()->BaseID) + Twine("_") +
2001-
utostr(static_cast<unsigned>(*PrefetchTargetIt + 1)));
2001+
utostr(static_cast<unsigned>(*PrefetchTargetIt)));
20022002
// If the function is weak-linkage it may be replaced by a strong
20032003
// version, in which case the prefetch targets should also be replaced.
20042004
OutStreamer->emitSymbolAttribute(

0 commit comments

Comments
 (0)