[llvm] r313273 - Silence warning about unused variable in release build

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 10:49:39 PDT 2017


Done in r313649.

-Krzysztof

On 9/18/2017 1:17 PM, David Blaikie wrote:
> Might be good to put the (void) cast near the assert, so it can be 
> removed if the assert is removed, etc.
> 
> On Thu, Sep 14, 2017 at 10:09 AM Krzysztof Parzyszek via llvm-commits 
> <llvm-commits at lists.llvm.org <mailto:llvm-commits at lists.llvm.org>> wrote:
> 
>     Author: kparzysz
>     Date: Thu Sep 14 10:08:26 2017
>     New Revision: 313273
> 
>     URL: http://llvm.org/viewvc/llvm-project?rev=313273&view=rev
>     Log:
>     Silence warning about unused variable in release build
> 
>     Modified:
>          llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
> 
>     Modified: llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
>     URL:
>     http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp?rev=313273&r1=313272&r2=313273&view=diff
>     ==============================================================================
>     --- llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp (original)
>     +++ llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp Thu Sep 14
>     10:08:26 2017
>     @@ -1236,6 +1236,7 @@ RegisterInfoEmitter::runTargetDesc(raw_o
>              << " = {\n";
>           for (unsigned M = 0; M < NumModes; ++M) {
>             unsigned EV = 0;
>     +      (void)EV;
>             OS << "  // Mode = " << M << " (";
>             if (M == 0)
>               OS << "Default";
> 
> 
>     _______________________________________________
>     llvm-commits mailing list
>     llvm-commits at lists.llvm.org <mailto:llvm-commits at lists.llvm.org>
>     http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
> 

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation


More information about the llvm-commits mailing list