| Index: lib/Transforms/NaCl/PromoteIntegers.cpp
|
| diff --git a/lib/Transforms/NaCl/PromoteIntegers.cpp b/lib/Transforms/NaCl/PromoteIntegers.cpp
|
| index e56bd78cdc0773a05a74fb4f9078cab07b578171..5a182446eeccc3e1890767fd23afef407463f9fd 100644
|
| --- a/lib/Transforms/NaCl/PromoteIntegers.cpp
|
| +++ b/lib/Transforms/NaCl/PromoteIntegers.cpp
|
| @@ -551,12 +551,6 @@ static void convertInstruction(Instruction *Inst, ConversionState &State) {
|
| for (SwitchInst::CaseIt I = Switch->case_begin(),
|
| E = Switch->case_end();
|
| I != E; ++I) {
|
| - // This sanity check should never trigger because no-one
|
| - // generates case ranges. It will go away when we merge
|
| - // upstream's r190328, which removes all case range support.
|
| - if (!I.getCaseValueEx().isSingleNumber())
|
| - report_fatal_error("Case ranges are not supported in PNaCl");
|
| -
|
| NewInst->addCase(cast<ConstantInt>(convertConstant(I.getCaseValue())),
|
| I.getCaseSuccessor());
|
| }
|
|
|