From 61a9349babec488dc327efaaae29efaa85df3742 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Thu, 29 Nov 2012 13:12:03 +0000 Subject: [PATCH] [msan] Fix a few compilation warnings. llvm-svn: 168878 --- lib/Transforms/Instrumentation/MemorySanitizer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;