[llvm] r266492 - Make this header include the header it depends on, rather than trying to include itself. Found by C++ modules build.

Richard Smith via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 15 16:30:57 PDT 2016


Author: rsmith
Date: Fri Apr 15 18:30:57 2016
New Revision: 266492

URL: http://llvm.org/viewvc/llvm-project?rev=266492&view=rev
Log:
Make this header include the header it depends on, rather than trying to include itself. Found by C++ modules build.

Modified:
    llvm/trunk/include/llvm/Support/CodeGenCWrappers.h

Modified: llvm/trunk/include/llvm/Support/CodeGenCWrappers.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CodeGenCWrappers.h?rev=266492&r1=266491&r2=266492&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CodeGenCWrappers.h (original)
+++ llvm/trunk/include/llvm/Support/CodeGenCWrappers.h Fri Apr 15 18:30:57 2016
@@ -17,8 +17,8 @@
 #define LLVM_SUPPORT_CODEGENCWRAPPERS_H
 
 #include "llvm-c/TargetMachine.h"
+#include "llvm/Support/CodeGen.h"
 #include "llvm/Support/ErrorHandling.h"
-#include "llvm/Support/CodeGenCWrappers.h"
 
 namespace llvm {
 




More information about the llvm-commits mailing list