From: Evgeniy Stepanov Date: Thu, 29 Nov 2012 13:12:03 +0000 (+0000) Subject: [msan] Fix a few compilation warnings. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2ea25f2f1cd29b617c768af504210127827fa2e3;p=oota-llvm.git [msan] Fix a few compilation warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168878 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 74334093450..ed0f89bfb59 100644 --- a/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -186,8 +186,8 @@ private: /// \brief An empty volatile inline asm that prevents callback merge. InlineAsm *EmptyAsm; - friend class MemorySanitizerVisitor; - friend class VarArgAMD64Helper; + friend struct MemorySanitizerVisitor; + friend struct VarArgAMD64Helper; }; } // namespace @@ -336,6 +336,8 @@ struct VarArgHelper { /// This method is called after visiting all interesting (see above) /// instructions in a function. virtual void finalizeInstrumentation() = 0; + + virtual ~VarArgHelper() {} }; struct MemorySanitizerVisitor;