summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenOpenCLCXX
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2019-01-16 02:34:36 +0000
committerEric Fiselier <eric@efcs.ca>2019-01-16 02:34:36 +0000
commit2e8efbb084ae87c5fb73ec88abdcd99484300c02 (patch)
tree4acca9040357db8c52b6b3637b2acf81569d7764 /clang/test/CodeGenOpenCLCXX
parentc91126ff7f6371ffe6241a3e69a4c0fbd69e4dd2 (diff)
When -faligned-allocation is specified in C++03 libc++ defines std::align_val_t as an unscoped enumeration type (because Clang didn't provide scoped enumerations as an extension until 8.0). Unfortunately Clang confuses the `align_val_t` overloads of delete with the sized deallocation overloads which aren't enabled. This caused Clang to call the aligned deallocation function as if it were the sized deallocation overload. For example: https://godbolt.org/z/xXJELh This patch fixes the confusion.
Diffstat (limited to 'clang/test/CodeGenOpenCLCXX')
0 files changed, 0 insertions, 0 deletions