diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-05-04 22:34:16 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-05-04 22:34:16 +0000 |
commit | 03ba93e194d979c95f29c9b602730e522f8facd4 (patch) | |
tree | 17ce38cbd40959c428e9426c37ff40698ae4f472 | |
parent | 3610a15c3581dee713820f72d8ffe2e2a632b057 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156216 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/NVPTX/NVPTXISelLowering.cpp | 2 | ||||
-rw-r--r-- | lib/Target/NVPTX/NVPTXutil.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/NVPTX/NVPTXISelLowering.cpp b/lib/Target/NVPTX/NVPTXISelLowering.cpp index 5f925ff87b..d326805b22 100644 --- a/lib/Target/NVPTX/NVPTXISelLowering.cpp +++ b/lib/Target/NVPTX/NVPTXISelLowering.cpp @@ -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"); } } diff --git a/lib/Target/NVPTX/NVPTXutil.cpp b/lib/Target/NVPTX/NVPTXutil.cpp index de311d286f..6a0e5328f6 100644 --- a/lib/Target/NVPTX/NVPTXutil.cpp +++ b/lib/Target/NVPTX/NVPTXutil.cpp @@ -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"); |