]> granicus.if.org Git - llvm/commitdiff
Fix go bindings for r350647: missed a function rename
authorJorge Gorbe Moya <jgorbe@google.com>
Tue, 8 Jan 2019 21:45:42 +0000 (21:45 +0000)
committerJorge Gorbe Moya <jgorbe@google.com>
Tue, 8 Jan 2019 21:45:42 +0000 (21:45 +0000)
Differential Revision: https://reviews.llvm.org/D56452

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

bindings/go/llvm/InstrumentationBindings.cpp

index 6ce43db620a215bc7685b0f337b07be971cd3be3..c3b4f2eaf508e593c5f0b17616705487882cc866 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/IR/Module.h"
 #include "llvm/Transforms/Instrumentation.h"
 #include "llvm/Transforms/Instrumentation/MemorySanitizer.h"
+#include "llvm/Transforms/Instrumentation/ThreadSanitizer.h"
 
 using namespace llvm;
 
@@ -29,7 +30,7 @@ void LLVMAddAddressSanitizerModulePass(LLVMPassManagerRef PM) {
 }
 
 void LLVMAddThreadSanitizerPass(LLVMPassManagerRef PM) {
-  unwrap(PM)->add(createThreadSanitizerPass());
+  unwrap(PM)->add(createThreadSanitizerLegacyPassPass());
 }
 
 void LLVMAddMemorySanitizerLegacyPassPass(LLVMPassManagerRef PM) {