diff options
| author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-05-09 18:33:59 +0000 |
|---|---|---|
| committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-05-09 18:33:59 +0000 |
| commit | 5093945e5c70889424f9b9017f47ee95b7d5cff6 (patch) | |
| tree | fb252a94f3d545aae430f2701b4c03cc76d51b79 /llvm/lib | |
| parent | 378f86998c56cf97ec4f8b0fc96d99e0eb30cf21 (diff) | |
| download | bcm5719-llvm-5093945e5c70889424f9b9017f47ee95b7d5cff6.tar.gz bcm5719-llvm-5093945e5c70889424f9b9017f47ee95b7d5cff6.zip | |
[Hexagon] Check the end of the correct container (fix typo)
llvm-svn: 331907
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp index 842d4a47b96..91500d909a1 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp @@ -537,8 +537,6 @@ Hexagon::Fixups HexagonMCCodeEmitter::getFixupNoBits( { 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::getFixupNoBits( 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; } |

