[llvm] [llvm][rtsan] Add transform pass for sanitize_realtime_unsafe (PR #109543)

Chris Apple via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 09:55:40 PDT 2024


================
@@ -17,47 +17,77 @@
 #include "llvm/IR/IRBuilder.h"
 #include "llvm/IR/Module.h"
 
+#include "llvm/Demangle/Demangle.h"
 #include "llvm/Transforms/Instrumentation/RealtimeSanitizer.h"
 
+#include <vector>
+
 using namespace llvm;
 
+static std::vector<Type *> getArgTypes(ArrayRef<Value *> FunctionArgs) {
+  std::vector<Type *> Types;
+  for (Value *Arg : FunctionArgs)
----------------
cjappl wrote:

Could reserve here before the for loop to prevent multiple resizing

https://github.com/llvm/llvm-project/pull/109543


More information about the llvm-commits mailing list