aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2020-05-10 14:14:04 +0200
committerAlex Zinenko <zinenko@google.com>2020-05-10 14:23:35 +0200
commitc71101d9efced2291d46992d32dc88577aef2cf6 (patch)
tree675959c8562a613841dc2c019ee1bf4bba1d5dcd /clang/lib/Frontend/CompilerInvocation.cpp
parentc28114c8ffde705d7e16cd4c065fd23269661c81 (diff)
downloadllvm-c71101d9efced2291d46992d32dc88577aef2cf6.zip
llvm-c71101d9efced2291d46992d32dc88577aef2cf6.tar.gz
llvm-c71101d9efced2291d46992d32dc88577aef2cf6.tar.bz2
[mlir] Initialize the Region::container field to nullptr by default
Region has a default constructor that is called when a region is constructed while an operation is being created, and therefore before the region can be attached to this operation. The `container` field is uninitialized, which makes it impossible to check programmatically if a Region is attached to an operation or not, leading to sly memory errors when this field is read. Initialize it to nullptr by default and thus make sure one can check if a region is attached to an operation or not.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions