Skip to content

Commit d18b4f8

Browse files
committed
[BOLT] Fix build after 0df1546
1 parent 8c09916 commit d18b4f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bolt/lib/Core/Exceptions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ void BinaryFunction::updateEHRanges() {
398398

399399
// Same symbol is used for the beginning and the end of the range.
400400
MCSymbol *EHSymbol;
401-
if (auto InstrLabel = BC.MIB->getLabel(Instr)) {
402-
EHSymbol = *InstrLabel;
401+
if (MCSymbol *InstrLabel = BC.MIB->getLabel(Instr)) {
402+
EHSymbol = InstrLabel;
403403
} else {
404404
std::unique_lock<llvm::sys::RWMutex> Lock(BC.CtxMutex);
405405
EHSymbol = BC.Ctx->createNamedTempSymbol("EH");

0 commit comments

Comments
 (0)