summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAchim Kriso <achim.kriso@student.kit.edu>2020-03-12 13:02:13 +0100
committerAndreas Fried <andreas.fried@kit.edu>2020-03-26 14:08:14 +0100
commitfc4a122d6b05fb89acad203697f501e228c9d14b (patch)
tree2cf226e2fac243a9918af7b4060d439e8aea24b5
parent510e5bc09247baaf061363d36de475e3ecb3843d (diff)
added compile time option to disable the inferring of malloc metadata
-rw-r--r--ir/opt/lfasan.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir/opt/lfasan.c b/ir/opt/lfasan.c
index 79b17a8..af9bb45 100644
--- a/ir/opt/lfasan.c
+++ b/ir/opt/lfasan.c
@@ -203,6 +203,11 @@ static lfptr_meta *new_lfptr_meta(ir_node* base, ir_node *size, bool arithmetic)
* In this case it infers the metadata and returns it.
*/
static lfptr_meta *is_alloc_res(ir_node *irn) {
+
+#ifndef INFER_ALLOC_METADATA
+ return NULL;
+#endif
+
dbg_info *dbgi = get_irn_dbg_info(irn);
ir_node *block = get_nodes_block(irn);