Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2755:80b024e75b29
small fix for dead blocks
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 20 May 2011 14:50:04 +0200 |
parents | 88123130ede6 |
children | b72e6638b9e6 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java Fri May 20 14:34:36 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java Fri May 20 14:50:04 2011 +0200 @@ -580,8 +580,9 @@ } } - protected LIRBlock getLIRBlock(BlockBegin b) { - return b.lirBlock(); + protected LIRBlock getLIRBlock(Instruction b) { + assert b instanceof BlockBegin : "only BlockBegin, for now..."; + return ((BlockBegin) b).lirBlock(); } @Override