summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-04-17 06:45:11 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-04-17 06:45:11 +0000
commitce47d5ba8cf7e30cbf0d6b80d3f7d10916c7fe31 (patch)
treeee0ababe061d15a34a192b471a44c972a0a8e9fd
parent0f3e48ecdb789addba06d51676f65f2754121ae4 (diff)
Fix -Werror build.
Broken in r179657. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179669 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Mips/AsmParser/MipsAsmParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
index d06877f9453..12812ccb80f 100644
--- a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -1022,6 +1022,8 @@ const MCExpr* MipsAsmParser::evaluateRelocExpr(const MCExpr *Expr,
if (LoSign)
Val++;
Res = MCConstantExpr::Create(Val, getContext());
+ } else {
+ llvm_unreachable("Invalid RelocStr value");
}
return Res;
}