[cfe-commits] r97910 - /cfe/trunk/lib/Frontend/DependencyFile.cpp

Kovarththanan Rajaratnam kovarththanan.rajaratnam at gmail.com
Sat Mar 6 23:18:58 PST 2010


Author: krj
Date: Sun Mar  7 01:18:58 2010
New Revision: 97910

URL: http://llvm.org/viewvc/llvm-project?rev=97910&view=rev
Log:
Don't assert if PP already contains a valid PP callback. The PP can handle multiple callbacks (using PPChainedCallbacks)

Modified:
    cfe/trunk/lib/Frontend/DependencyFile.cpp

Modified: cfe/trunk/lib/Frontend/DependencyFile.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/DependencyFile.cpp?rev=97910&r1=97909&r2=97910&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/DependencyFile.cpp (original)
+++ cfe/trunk/lib/Frontend/DependencyFile.cpp Sun Mar  7 01:18:58 2010
@@ -74,7 +74,6 @@
     return;
   }
 
-  assert(!PP.getPPCallbacks() && "Preprocessor callbacks already registered!");
   PP.setPPCallbacks(new DependencyFileCallback(&PP, OS, Opts));
 }
 





More information about the cfe-commits mailing list