Fix language builtin assert() (which was broken by 8d1b77b).
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user