[PATCH] D44093: [BUILTINS] structure pretty printer

Alexander Richardson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 10 14:49:18 PDT 2018


arichardson added a comment.

In https://reviews.llvm.org/D44093#1063679, @paulsemel wrote:

> Ok, I found the problem. In fact the size of `long` is 4 bytes on your machine, but 8 bytes on mine.
>  This makes this `// CHECK: [[LOAD1:%[0-9]+]] = load i64, i64* [[RES1]],` fail.
>  Do you know a smart way to do it without dealing with type sizes ?


You should probably run the test with `-triple=x86_64-unknown-linux` (or whatever the triple for your host machine happens to be). Otherwise they depend on the default clang triple which could have a different size long.


Repository:
  rC Clang

https://reviews.llvm.org/D44093





More information about the cfe-commits mailing list