I solved it by moving a project-specific include after the llvm includes. I.e., <br>From:<br><br>#include "ast.h"<br>#include "llvm/Module.h"<br>#include "llvm/Function.h"<br>#include "llvm/PassManager.h"<br>
...<br><br>to:<br><br>#include "llvm/Module.h"<br>#include "llvm/Function.h"<br>#include "llvm/PassManager.h"<br>...<br>#include "ast.h"<br><br>I can't figure out why this gave me the particular error I was receiving, but it solves the problem.<br>