Skip to content

Commit eb0d212

Browse files
committed
Fixed a build issue with AX on 32 bit platforms. IR void* is always i8* regardless
Signed-off-by: Nick Avramoussis <[email protected]>
1 parent 43ecdc2 commit eb0d212

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

openvdb_ax/openvdb_ax/codegen/Types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ struct LLVMType<void>
198198
}
199199
};
200200

201-
/// @note void* implemented as signed int_t* to match clang IR generation
202-
template <> struct LLVMType<void*> : public LLVMType<int_t<sizeof(void*)>::type*> {};
201+
/// @note void* implemented as signed int8_t* to match clang IR generation
202+
template <> struct LLVMType<void*> : public LLVMType<int8_t*> {};
203203
template <> struct LLVMType<openvdb::math::half>
204204
{
205205
// @note LLVM has a special representation of half types. Don't alias to

pendingchanges/ax32fix.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Build:
2+
- Fixed a build issue with AX on 32bit platforms.
3+
[Reported by Mathieu Malaterre]

0 commit comments

Comments
 (0)