mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
Fix warnings in release build.
This fixes a couple of Clang warnings in release builds of LLVM: * Missing return in ISelLowering * Unused variable in NVPTXutil.cpp llvm-svn: 156216
This commit is contained in:
parent
7bc52bcfad
commit
4f57670dab
@ -860,7 +860,7 @@ LowerOperation(SDValue Op, SelectionDAG &DAG) const {
|
||||
return Op;
|
||||
case ISD::CONCAT_VECTORS: return LowerCONCAT_VECTORS(Op, DAG);
|
||||
default:
|
||||
assert(0 && "Custom lowering not defined for operation");
|
||||
llvm_unreachable("Custom lowering not defined for operation");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -75,6 +75,7 @@ uint64_t encode_leb128(const char *str)
|
||||
|
||||
int retval = encode_leb128(temp64.x, &nbytes, encoded, 16);
|
||||
|
||||
(void)retval;
|
||||
assert(retval == 0 &&
|
||||
"Encoding to leb128 failed");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user