[cfe-commits] r171755 - in /cfe/trunk: lib/AST/ExprConstant.cpp lib/CodeGen/CGExprScalar.cpp lib/Sema/SemaExpr.cpp test/CodeGen/catch-undef-behavior.c test/CodeGenOpenCL/shifts.cl test/Sema/shiftOpenCL.cl

NAKAMURA Takumi geek4civic at gmail.com
Tue Jan 8 16:36:24 PST 2013


2013/1/9 David Tweed <David.Tweed at arm.com>:
>
> |This test breaks on a Release-Asserts build with CMake+ninja.  The
> |generated IR is:
>
> Thanks for reporting. I'll change the name regexps to be more general, but I wonder why it's happening? I'd thought the command line was suitably specific, though I'm using configure+make. It'd be a bit concerning if the choice of build system changed the compiler at all.

In general, each Instruction's name is affected by
--enable-assertions, aka, NDEBUG.

See also clang/lib/CodeGen/CGBuilder.h

// Don't preserve names on values in an optimized build.
#ifdef NDEBUG
typedef llvm::IRBuilder<false> CGBuilderTy;
#else
typedef llvm::IRBuilder<> CGBuilderTy;
#endif




More information about the cfe-commits mailing list