Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(788)

Unified Diff: lib/Transforms/NaCl/PromoteIntegers.cpp

Issue 180483005: Fix PNaCl-local files after merging LLVM 3.4 (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@hs-merge-before-fixes
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/Target/X86/MCTargetDesc/X86MCNaCl.cpp ('k') | test/CodeGen/ARM/varargs-spill-stack-align-nacl.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « lib/Target/X86/MCTargetDesc/X86MCNaCl.cpp ('k') | test/CodeGen/ARM/varargs-spill-stack-align-nacl.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698