[llvm] r331907 - [Hexagon] Check the end of the correct container (fix typo)
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Wed May 9 11:33:59 PDT 2018
Author: kparzysz
Date: Wed May 9 11:33:59 2018
New Revision: 331907
URL: http://llvm.org/viewvc/llvm-project?rev=331907&view=rev
Log:
[Hexagon] Check the end of the correct container (fix typo)
Modified:
llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
Modified: llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp?rev=331907&r1=331906&r2=331907&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp Wed May 9 11:33:59 2018
@@ -537,8 +537,6 @@ Hexagon::Fixups HexagonMCCodeEmitter::ge
{ MCSymbolRefExpr::VK_None, fixup_Hexagon_HI16 },
};
- std::map<unsigned, unsigned>::const_iterator FindIt;
-
switch (MCID.getOpcode()) {
case Hexagon::LO:
case Hexagon::A2_tfril: {
@@ -550,7 +548,7 @@ Hexagon::Fixups HexagonMCCodeEmitter::ge
case Hexagon::HI:
case Hexagon::A2_tfrih: {
auto F = RelocsHi.find(VarKind);
- if (F != RelocsLo.end())
+ if (F != RelocsHi.end())
return Hexagon::Fixups(F->second);
break;
}
More information about the llvm-commits
mailing list