r211138 - Convert assert(0) to llvm_unreachable to silence a warning about Addend being uninitialized in default case.
Craig Topper
craig.topper at gmail.com
Tue Jun 17 20:13:42 PDT 2014
Author: ctopper
Date: Tue Jun 17 22:13:41 2014
New Revision: 211138
URL: http://llvm.org/viewvc/llvm-project?rev=211138&view=rev
Log:
Convert assert(0) to llvm_unreachable to silence a warning about Addend being uninitialized in default case.
Modified:
cfe/trunk/utils/TableGen/NeonEmitter.cpp
Modified: cfe/trunk/utils/TableGen/NeonEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/TableGen/NeonEmitter.cpp?rev=211138&r1=211137&r2=211138&view=diff
==============================================================================
--- cfe/trunk/utils/TableGen/NeonEmitter.cpp (original)
+++ cfe/trunk/utils/TableGen/NeonEmitter.cpp Tue Jun 17 22:13:41 2014
@@ -599,7 +599,7 @@ unsigned Type::getNeonEnum() const {
case 32: Addend = 2; break;
case 64: Addend = 3; break;
case 128: Addend = 4; break;
- default: assert(0 && "Unhandled element bitwidth!");
+ default: llvm_unreachable("Unhandled element bitwidth!");
}
unsigned Base = (unsigned)NeonTypeFlags::Int8 + Addend;
More information about the cfe-commits
mailing list