[llvm-commits] [llvm] r156216 - in /llvm/trunk/lib/Target/NVPTX: NVPTXISelLowering.cpp NVPTXutil.cpp
David Blaikie
dblaikie at gmail.com
Fri May 4 15:34:16 PDT 2012
Author: dblaikie
Date: Fri May 4 17:34:16 2012
New Revision: 156216
URL: http://llvm.org/viewvc/llvm-project?rev=156216&view=rev
Log:
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
Modified:
llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp
llvm/trunk/lib/Target/NVPTX/NVPTXutil.cpp
Modified: llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp?rev=156216&r1=156215&r2=156216&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp Fri May 4 17:34:16 2012
@@ -860,7 +860,7 @@
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");
}
}
Modified: llvm/trunk/lib/Target/NVPTX/NVPTXutil.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXutil.cpp?rev=156216&r1=156215&r2=156216&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXutil.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXutil.cpp Fri May 4 17:34:16 2012
@@ -75,6 +75,7 @@
int retval = encode_leb128(temp64.x, &nbytes, encoded, 16);
+ (void)retval;
assert(retval == 0 &&
"Encoding to leb128 failed");
More information about the llvm-commits
mailing list