Chromium Code Reviews| Index: src/IceCfg.cpp |
| diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp |
| index cc6d07c0e1bbba9c06406ac7e126e8ac6a2d7a66..cf7be3b1f9a791c14cb3a4168ba68cdf0779f904 100644 |
| --- a/src/IceCfg.cpp |
| +++ b/src/IceCfg.cpp |
| @@ -43,15 +43,13 @@ Cfg::Cfg(GlobalContext *Ctx, uint32_t SequenceNumber) |
| VMetadata(new VariablesMetadata(this)), |
| TargetAssembler(TargetLowering::createAssembler( |
| Ctx->getFlags().getTargetArch(), this)) { |
| - assert(!Ctx->isIRGenerationDisabled() && |
| - "Attempt to build cfg when IR generation disabled"); |
| if (Ctx->getFlags().getRandomizeAndPoolImmediatesOption() == RPI_Randomize) { |
| // If -randomize-pool-immediates=randomize, create a random number generator |
| // to generate a cookie for constant blinding. |
| RandomNumberGenerator RNG(Ctx->getFlags().getRandomSeed(), |
| - RPE_ConstantBlinding, SequenceNumber); |
| + RPE_ConstantBlinding, this->SequenceNumber); |
|
Jim Stichnoth
2015/08/21 00:12:31
I think you can drop the "this->", right?
|
| ConstantBlindingCookie = |
| - (uint32_t)RNG.next((uint64_t)std::numeric_limits<uint32_t>::max + 1); |
| + (uint32_t)RNG.next((uint64_t)std::numeric_limits<uint32_t>::max() + 1); |
| } |
| } |