aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorYaxun (Sam) Liu <yaxun.liu@amd.com>2023-05-11 12:57:21 -0400
committerYaxun (Sam) Liu <yaxun.liu@amd.com>2023-05-23 11:52:52 -0400
commitf5033c37025db46df95a7859d7189d09b5e3433e (patch)
treef35eabbcbaa916d3e37623e048da995a8d6ac716 /llvm/lib/IR/Module.cpp
parent18c4695dedb4fad1132b50bf2c247afd8413e321 (diff)
downloadllvm-f5033c37025db46df95a7859d7189d09b5e3433e.zip
llvm-f5033c37025db46df95a7859d7189d09b5e3433e.tar.gz
llvm-f5033c37025db46df95a7859d7189d09b5e3433e.tar.bz2
[HIP] Allow std::malloc in device function
D106463 caused a regression that prevents std::malloc to be called in the device function, which is allowed with nvcc. Basically the standard C++ header introducing malloc in std namespace by using ::malloc. The device ::malloc function needs to be declared before using ::malloc to be introduced into std namespace. Revert D106463 and add a test. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D150965
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions