1
0
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:
David Blaikie 2012-05-04 22:34:16 +00:00
parent 7bc52bcfad
commit 4f57670dab
2 changed files with 2 additions and 1 deletions

View File

@ -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");
}
}

View File

@ -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");