]> granicus.if.org Git - llvm/commitdiff
[MSan] Hotfix compilation
authorAlexander Potapenko <glider@google.com>
Mon, 11 Dec 2017 15:48:56 +0000 (15:48 +0000)
committerAlexander Potapenko <glider@google.com>
Mon, 11 Dec 2017 15:48:56 +0000 (15:48 +0000)
For some reason the override directives got removed in r320373.
I suspect this to be an unwanted effect of clang-format.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320381 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/MemorySanitizer.cpp

index ace657f0682b18d523f8e36fb12db4c5b1aaa1be..b3c39b5b166597bf6941fb470f9c13af29570314 100644 (file)
@@ -3182,14 +3182,14 @@ struct VarArgAMD64Helper : public VarArgHelper {
     // nonzero shadow.
   }
 
-  void visitVAStartInst(VAStartInst &I) {
+  void visitVAStartInst(VAStartInst &I) override {
     if (F.getCallingConv() == CallingConv::Win64)
       return;
     VAStartInstrumentationList.push_back(&I);
     unpoisonVAListTagForInst(I);
   }
 
-  void visitVACopyInst(VACopyInst &I) {
+  void visitVACopyInst(VACopyInst &I) override {
     if (F.getCallingConv() == CallingConv::Win64) return;
     unpoisonVAListTagForInst(I);
   }