Mercurial > hg > graal-jvmci-8
diff src/share/vm/c1/c1_LIRGenerator.hpp @ 23822:626f594dffa6
8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux.
Reviewed-by: stuefe, coleenp, roland
author | csahu |
---|---|
date | Tue, 01 Mar 2016 12:50:37 +0530 |
parents | ddce0b7cee93 |
children | d109bda16490 |
line wrap: on
line diff
--- a/src/share/vm/c1/c1_LIRGenerator.hpp Thu Feb 18 16:15:28 2016 +0100 +++ b/src/share/vm/c1/c1_LIRGenerator.hpp Tue Mar 01 12:50:37 2016 +0530 @@ -410,7 +410,7 @@ } static LIR_Condition lir_cond(If::Condition cond) { - LIR_Condition l; + LIR_Condition l = lir_cond_unknown; switch (cond) { case If::eql: l = lir_cond_equal; break; case If::neq: l = lir_cond_notEqual; break; @@ -420,6 +420,7 @@ case If::gtr: l = lir_cond_greater; break; case If::aeq: l = lir_cond_aboveEqual; break; case If::beq: l = lir_cond_belowEqual; break; + default: fatal("You must pass valid If::Condition"); }; return l; }