From 92e4443fcc4a349f061b651a1aa7a5862268cbf9 Mon Sep 17 00:00:00 2001 From: Kovarththanan Rajaratnam Date: Sun, 7 Mar 2010 07:18:58 +0000 Subject: [PATCH] Don't assert if PP already contains a valid PP callback. The PP can handle multiple callbacks (using PPChainedCallbacks) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97910 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/DependencyFile.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Frontend/DependencyFile.cpp b/lib/Frontend/DependencyFile.cpp index 478c33939c..9487b1a06d 100644 --- a/lib/Frontend/DependencyFile.cpp +++ b/lib/Frontend/DependencyFile.cpp @@ -74,7 +74,6 @@ void clang::AttachDependencyFileGen(Preprocessor &PP, return; } - assert(!PP.getPPCallbacks() && "Preprocessor callbacks already registered!"); PP.setPPCallbacks(new DependencyFileCallback(&PP, OS, Opts)); } -- 2.40.0