[llvm] r179669 - Fix -Werror build.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Tue Apr 16 23:45:11 PDT 2013
Author: eugenis
Date: Wed Apr 17 01:45:11 2013
New Revision: 179669
URL: http://llvm.org/viewvc/llvm-project?rev=179669&view=rev
Log:
Fix -Werror build.
Broken in r179657.
Modified:
llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
Modified: llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp?rev=179669&r1=179668&r2=179669&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp Wed Apr 17 01:45:11 2013
@@ -1022,6 +1022,8 @@ const MCExpr* MipsAsmParser::evaluateRel
if (LoSign)
Val++;
Res = MCConstantExpr::Create(Val, getContext());
+ } else {
+ llvm_unreachable("Invalid RelocStr value");
}
return Res;
}
More information about the llvm-commits
mailing list