summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-06-26 09:31:18 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-06-26 09:31:18 +0000
commit9b3b0fe763fef29df9ba62cb6846c95ebc84f2c9 (patch)
tree5c570964f59e3e0194332a7756646a65e2299c42 /llvm/lib/Support/APInt.cpp
parent8f53b6d71ed94c7c45b226bbc9d76de950cf666f (diff)
downloadbcm5719-llvm-9b3b0fe763fef29df9ba62cb6846c95ebc84f2c9.tar.gz
bcm5719-llvm-9b3b0fe763fef29df9ba62cb6846c95ebc84f2c9.zip
Fix MSVC "not all control paths return a value" warnings. NFCI.
llvm-svn: 335584
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r--llvm/lib/Support/APInt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 8be903f2ccb..60372736d78 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/lib/Support/APInt.cpp
@@ -2674,6 +2674,7 @@ APInt llvm::APIntOps::RoundingUDiv(const APInt &A, const APInt &B,
return Quo + 1;
}
}
+ llvm_unreachable("Unknown APInt::Rounding enum");
}
APInt llvm::APIntOps::RoundingSDiv(const APInt &A, const APInt &B,
@@ -2703,4 +2704,5 @@ APInt llvm::APIntOps::RoundingSDiv(const APInt &A, const APInt &B,
case APInt::Rounding::TOWARD_ZERO:
return A.sdiv(B);
}
+ llvm_unreachable("Unknown APInt::Rounding enum");
}
OpenPOWER on IntegriCloud