Fix language builtin assert() (which was broken by 8d1b77b).

This commit is contained in:
Matt Pharr
2011-12-15 12:10:27 -08:00
parent e82a720223
commit 018b547c40

View File

@@ -1185,9 +1185,9 @@ Module::execPreprocessor(const char* infilename, llvm::raw_string_ostream* ostre
if (g->includeStdlib) { if (g->includeStdlib) {
if (g->opt.disableAsserts) if (g->opt.disableAsserts)
opts.addMacroDef("Assert(x)="); opts.addMacroDef("assert(x)=");
else else
opts.addMacroDef("Assert(x)=__Assert(#x, x)"); opts.addMacroDef("assert(x)=__assert(#x, x)");
} }
for (unsigned int i = 0; i < g->cppArgs.size(); ++i) { for (unsigned int i = 0; i < g->cppArgs.size(); ++i) {