[llvm] r238494 - [llvm] Adding vdtor to fix warning.
Yaron Keren
yaron.keren at gmail.com
Thu May 28 21:40:27 PDT 2015
Hi Colin,
Visual C++ complains:
tools\llvm-objdump\llvm-objdump.cpp(224): warning C4065: switch statement
contains 'default' but no 'case' labels
on the code:
switch(Triple.getArch()) {
default:
return PrettyPrinterInst;
}
Yaron
2015-05-28 23:59 GMT+03:00 Colin LeMahieu <colinl at codeaurora.org>:
> Author: colinl
> Date: Thu May 28 15:59:08 2015
> New Revision: 238494
>
> URL: http://llvm.org/viewvc/llvm-project?rev=238494&view=rev
> Log:
> [llvm] Adding vdtor to fix warning.
>
> Modified:
> llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
>
> Modified: llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp?rev=238494&r1=238493&r2=238494&view=diff
>
> ==============================================================================
> --- llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp (original)
> +++ llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp Thu May 28 15:59:08 2015
> @@ -204,6 +204,7 @@ bool llvm::RelocAddressLess(RelocationRe
> namespace {
> class PrettyPrinter {
> public:
> + virtual ~PrettyPrinter(){}
> virtual void printInst(MCInstPrinter &IP, const MCInst *MI, bool
> ShowRawInsn,
> ArrayRef<uint8_t> Bytes, uint64_t Address,
> raw_ostream &OS, StringRef Annot,
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150529/f9053a1c/attachment.html>
More information about the llvm-commits
mailing list